Help function RemoveBuildingForPlayer!
#1

I want to load RemoveBuildingForPlayer function without restarting the server, can someone help me.
Reply
#2

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) //Start looping through all players
{
    if(!IsPlayerConnected(i)) continue; //If the player is not connected, skip.
    RemoveBuildingForPlayer(i, /*....*/); //Remove the building for the player.
}
References:
https://sampwiki.blast.hk/wiki/Keywords:Statements#for

Also see: https://sampforum.blast.hk/showthread.php?tid=92679
Reply
#3

Quote:
Originally Posted by Threshold
Посмотреть сообщение
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) //Start looping through all players
{
    if(!IsPlayerConnected(i)) continue; //If the player is not connected, skip.
    RemoveBuildingForPlayer(i, /*....*/); //Remove the building for the player.
}
References:
https://sampwiki.blast.hk/wiki/Keywords:Statements#for

Also see: https://sampforum.blast.hk/showthread.php?tid=92679
Thank you, you can just do a restore?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)