25.05.2013, 16:14
(
Последний раз редактировалось [..MonTaNa..]; 18.01.2014 в 20:57.
)
Removed.
if(newstate == PLAYER_STATE_DRIVER && AdminCar(GetVehicleModel(GetPlayerVehicleID(playerid) ) ) )
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(IsBeingSpeced[playerid] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(spectatingid[i] == playerid)
{
if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER) PlayerSpectateVehicle(i, GetPlayerVehicleID(playerid));
if(newstate == PLAYER_STATE_ONFOOT) PlayerSpectatePlayer(i, playerid);
}
}
}
if(newstate == PLAYER_STATE_DRIVER && AdminCar[GetVehicleModel(GetPlayerVehicleID(playerid))])
{
if(!IsCnRAdmin(playerid))
{
RemovePlayerFromVehicle(playerid);
GameTextForPlayer(playerid, "~r~this is an admin vehicle~n~~p~ejected", 4000, 3);
}
}
return 1;
}
if(newstate == PLAYER_STATE_DRIVER && AdminCar[GetVehicleModel(GetPlayerVehicleID(playerid))] )