03.02.2011, 20:09
Stock:
This don't set the world free at player:
pawn Код:
stock WorldLibero(worldid)
{
if(worldid==0)return false;
for(new i = 0; i < MAX_PLAYERS; i++)
if(GetPlayerVirtualWorld(i) == worldid)
return false;
return true;
}
pawn Код:
.......
if(IsPlayerInAnyVehicle(playerid)) { DestroyVehicle(GetPlayerVehicleID(playerid)); }
new n=1;
while(!WorldLibero(n))
n++;
TogglePlayerControllable(playerid,false);
.......