08.12.2011, 11:43
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerVehicleID(playerid) == VeiculoID[playerid])
{
return 1;
}
else
{
format(gstring, sizeof(gstring), "| ERRO | Esse veнculo pertence а %s e vocк nгo pode dirigi-lo! {99FF66}( Crie o seu usando: /Veh )", PlayerName(VeiculoID[playerid]));
SendClientMessage(playerid, 0xFF6633AA, gstring);
PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0);
RemovePlayerFromVehicle(playerid);
return 1;
}
}
return 1;
}