17.02.2013, 12:55
How to make that if player in dm zone, he cant spawn vehicle? I maked this code:
But when someone enter dm zone, all player's can't spawn cars. If I try to make something with playerid, I get error undefined symbol playerid.
Код:
public OnVehicleSpawn(vehicleid) { for( new i = 0; i < MAX_PLAYERS; i++ ) { if( IsPlayerConnected( i ) && !IsPlayerNPC( i ) && DM[ i ] == true ) DestroyVehicle( vehicleid ); } return 1; }