08.05.2013, 12:42
try this
PHP код:
public ProvTimer()
{
for(new i; i < MAX_PLAYERS; i++)
{
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(i, 0);
gSpectateID[i] = 0;
}
}
}
}
return 1;
}