hi
kann mir einer sagen wie man es beheben kann beim ravens rp (larp)
den /selectspawn ?
wenn man /selectspawn macht kann man auswählen wo man beim einloggen wieder spawn will
house
frak
oder dort wo man zuletzt war
jedoch spawnt man immer an der stelle wo man zuletzt gewesen ist
sprich
irgendwie wird nicht gespeichert das man im haus int spawnen möchte
code alles mit /selectspawn
if(dialogid == 999)
{
if(response)
{
if(listitem == 0)
{
PlayerInfo[playerid][pSpawn] = 0;
SendClientMessage(playerid, COLOR_GREY,"* Last Position Saved has been choosed as spawn Point. (/resetspawn)");
}
else if(listitem == 1)
{
if(PlayerInfo[playerid][pPhousekey] < 999)
{
PlayerInfo[playerid][pSpawn] = 1;
SendClientMessage(playerid, COLOR_GREY,"* House Interior has been choosed as spawn Point. (/selectspawn)");
}
else return SendClientMessage(playerid,COLOR_GREY,"* You do not have any House!");
}
else if(listitem == 2)
{
if(PlayerInfo[playerid][pFMember] < 255)
{
PlayerInfo[playerid][pSpawn] = 2;
SendClientMessage(playerid, COLOR_GREY,"* Family Spawn Point has been choosed as spawn Point. (/selectspawn)");
}
else return SendClientMessage(playerid,COLOR_GREY,"* You do not have any Family!");
}
else if(listitem == 3)
{
if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0)
{
PlayerInfo[playerid][pSpawn] = 3;
SendClientMessage(playerid, COLOR_GREY,"* Faction Spawn Point has been choosed as spawn Point. (/selectspawn)");
}
else return SendClientMessage(playerid,COLOR_GREY,"* You do not have any faction!");
}
}
}
if(strcmp(cmd, "/selectspawn", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Float:Health;
GetPlayerHealth(playerid, Health);
if(Health <= 35) return SendClientMessage(playerid, COLOR_GREY,"You cannot use This command with such low HP");
new Buyitems[] = "1\tLast Position Saved\n2\tHouse Interior Spawn Point\n3\tFamily Spawn Point\n4\tFaction/Job Spawn Point";
ShowPlayerDialog(playerid,999,DIALOG_STYLE_LIST,"Select Your Spawn",Buyitems,"Select","Cancel");
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /selectspawn",d,m,y,h,mi,s,sendername);
CommandLog(string);
}
return 1;
}
pls help me
mfg