16.07.2015, 14:41
Will this decrease MaxPass variable for each player effects by the code or only one time?
PHP код:
for(new i =0; i < MAX_PLAYERS;i++)
{
if(PilotID[i] == playerid && city[i] == 1)
{
SetPlayerPos(i,1983.5895,-2496.0449,13.5391);
SetPlayerInterior(i, 0);
SetPlayerVirtualWorld(i, 0);
PilotID[i] = -1;
RequestPilot[i] = false;
city[i] = 0;
MaxPass[playerid]--;
}
}