Quote:
Originally Posted by XStormiest
a singe function that make this posible is TogglePlayerControllable(playerid,false/true);
pawn Код:
public OnPlayerSpawn(playerid) { GivePlayerWeapon(playerid,26,500); GivePlayerWeapon(playerid,29,500); GivePlayerWeapon(playerid,24,500); GivePlayerWeapon(playerid,34,500); GivePlayerWeapon(playerid,30,500); TogglePlayerControllable(playerid,false); SetTimer("Move",6*1000,0); }
forward Move(); public Move() { for(new i; i == MAX_PLAYERS;++i) { TogglePlayerControllable(i,true); } }
this will block it for 6 seconds so if he can't move he wil can again 6 seconds because TogglePlayerControllable will set to true ( can move and more)
|
No it's not that problem, it's like a loop that always set a players pos/respawn the player