Don't spectate vehicle when admin enters it
#10

try this

PHP код:

public ProvTimer()
{
    for(new 
iMAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
GetPlayerState(i) == PLAYER_STATE_SPECTATING)
            {
                if(
AdminInThisCar[gSpectateID[i]])
                {
                    
SendClientMessage(playerid,COLOR_RED,"Now you cant spectate this vehicle, in this vehicle sit admin!");
                    
TogglePlayerSpectating(i0);
                    
gSpectateID[i] = 0;
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)