25.07.2012, 00:04
Tente:
pawn Код:
if (newstate == PLAYER_STATE_DRIVER)
{
if (CarroJogador[playerid] == GetPlayerVehicleID(playerid))
{
format(String, sizeof(String), "Seja bem vindo ao seu veнculo! [%s]", GetVehicleNameFromID(GetPlayerVehicleID(playerid)));
SendClientMessage(playerid, 0xFFFFFFAA, String);
return 1;
}
else
{
new owner[MAX_PLAYER_NAME];
GetPlayerName(InfoCarro[playerid][s_Dono], owner, sizeof(owner)) ;
format(String, sizeof(String) , "Veнculo de %s somente ele(a) pode dirigi-lo!", owner);
SendClientMessage(playerid, -1 ,String);
PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0);
RemovePlayerFromVehicle(playerid);
return 1;
}
}