Pawno help needed
#7

First, do this
pawn Код:
COMMAND:exitdm(playerid,params[])
{
dmarena[playerid] =0;
SetPlayerHealth(playerid,0);
SpawnPlayer(playerid);
return 1;
}
then OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
if(dmarena[playerid] == 1)
{
new rand = random(sizeof(DMRandomSpawns));
SetPlayerPos(playerid, DMRandomSpawns[rand][0], DMRandomSpawns[rand][1], DMRandomSpawns[rand][2]);
SetPlayerSkin(playerid, 230);
else {
dmarena[playerid] =0;
SpawnPlayer(playerid);
}
}
return 1;
}
Hope it works for you
Reply


Messages In This Thread
Pawno help needed - by ragu1987 - 01.11.2013, 08:04
Re: Pawno help needed - by ragu1987 - 01.11.2013, 08:48
Re: Pawno help needed - by newbie scripter - 01.11.2013, 08:49
Re: Pawno help needed - by ragu1987 - 01.11.2013, 11:09
Re: Pawno help needed - by Astralis - 01.11.2013, 11:12
Re: Pawno help needed - by ragu1987 - 01.11.2013, 15:00
Re: Pawno help needed - by iFiras - 01.11.2013, 15:07
Re: Pawno help needed - by ragu1987 - 01.11.2013, 15:25
Re: Pawno help needed - by ragu1987 - 03.11.2013, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)