Vehicle in DM zone
#1

How to make that if player in dm zone, he cant spawn vehicle? I maked this code:

Код:
public OnVehicleSpawn(vehicleid)
{
    for( new i = 0; i < MAX_PLAYERS; i++ )
    {
        if( IsPlayerConnected( i ) && !IsPlayerNPC( i ) && DM[ i ] == true ) DestroyVehicle( vehicleid );

    }
	return 1;
}
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.
Reply


Messages In This Thread
Vehicle in DM zone - by Louris - 17.02.2013, 12:55
Re: Vehicle in DM zone - by MP2 - 17.02.2013, 13:06
Re: Vehicle in DM zone - by Louris - 17.02.2013, 13:49
Re: Vehicle in DM zone - by ]Rafaellos[ - 17.02.2013, 13:51
Re: Vehicle in DM zone - by Louris - 17.02.2013, 13:53
Re: Vehicle in DM zone - by ]Rafaellos[ - 17.02.2013, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)