Hey Leute.
Ich hab' schon rumgesucht und wurde auch fündig. Als ich es jedoch probiert habe ging's trotzdem nicht.
Meine Frage:
Wie schaff ich das, dass, wenn man in der Paintball Arena stirbt da wieder spawnt.
pPaintball
PlayerInfo[playerid][pPaintball] = 0;
public OnPlayerSpawn(playerid)
{...
//Paintball
if(PlayerInfo[playerid][pPaintball] == 1)
{
SetPlayerPos(playerid,-2537.2830,-691.0703,139.3203);
SetPlayerVirtualWorld(playerid,2);
}
else if(PlayerInfo[playerid][pPaintball] == 2)
{
SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
SetPlayerVirtualWorld(playerid,2);
}
else if(PlayerInfo[playerid][pPaintball] == 3)
{
SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
SetPlayerVirtualWorld(playerid,2);
}
else if(PlayerInfo[playerid][pPaintball] == 4)
{
SetPlayerPos(playerid,1392.3311,2193.9934,11.0234);
SetPlayerVirtualWorld(playerid,2);
}
else if(PlayerInfo[playerid][pPaintball] == 5)
{
SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
SetPlayerVirtualWorld(playerid,2);
}
if(dialogid == DIALOG_PAINTBALL)
{
if(response==0) { return 1; }
if(response==1)
{
if(listitem == 0)
{
PlayerInfo[playerid][pPaintball] = 1;
GangZoneShowForPlayer(playerid, Zone, 0xFFFF0096);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,999);
SetPlayerPos(playerid,-2537.2830,-691.0703,139.3203);
SetPlayerVirtualWorld(playerid,2);
SetPlayerWorldBounds(playerid,-2486.0928,-2543.4639,-591.9089,-719.9017);
SendClientMessage(playerid,COLOR_WHITE,"Du hast die Deagle Arena betreten. Kosten: $500.");
SendClientMessage(playerid,COLOR_WHITE,"Zum verlassen der Paintball Arena, tippe /exit.");
GivePlayerMoney(playerid, -500);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,999);
}
if(listitem == 1)
PlayerInfo[playerid][pPaintball] = 2;