21.02.2013, 14:21
this is my ONPlayerSpawn
When i do F4 -> /kill and spawn as other team it appears Stay within world bounds .. . .
Can anyone help me please?
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsSpecing[playerid] == 1)
{
SetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]);
SetPlayerInterior(playerid,Inter[playerid]);
SetPlayerVirtualWorld(playerid,vWorld[playerid]);
IsSpecing[playerid] = 0;
IsBeingSpeced[spectatorid[playerid]] = 0;
}
if(Spawned[playerid] == 1)
SetPlayerWorldBounds(playerid, -625.4236, 494.9402, 2982.4575, 2986.2341);
SetPlayerHealth(playerid, 1000);
SetTimerEx("finproct", 3000, false, "i", playerid);
SetPlayerToTeamColor(playerid);
SetPlayerTeam(playerid, gTeam[playerid]);
Spawned[playerid] = 1;
return 1;
}
Can anyone help me please?