02.12.2013, 14:07
pawn Код:
new bool:Joinedhunger[MAX_PLAYERS];//in the top of your script
CMD:hunger(playerid,params[])
{
Joinedhunger[playerid] = true;
SetTimer("Rounds",10000,true);
return 1;
}
CMD:leavehunger(playerid,params[])
{
Joinedhunger[playerid] = false;
Spawn(playerid);
return 1;
}
new Float:RandomSpawn[][4] =
{
//change this postions to your floats you want to set for tha player.
{-2796.9854, 1224.8180, 20.5429, 192.0335},
{-2454.2170, 503.8759, 30.0790, 267.2932},
{-2669.7322, -6.0874, 6.1328, 89.8853}
};
forward Rounds();
forward Rounds();
{
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
}