15.04.2010, 15:04
Ta meio errado, alias, tem varias maneiras:
ou entгo:
No OnPlayerDeath:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(oldkeys & KEY_FIRE)
{
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}
ou entгo:
No OnPlayerDeath:
pawn Код:
if(reason(playerid) == 49)
{
RemovePlayerFromVehicle(killerid);
new name[MAX_PLAYER_NAME];
new killername[MAX_PLAYER_NAME];
new string[68];
GetPlayerName(killerid, nomekiller, sizeof(nomekiller));
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s [ID:%i] fez Drive-By em %s.",nomekiller, killerid, name);
SendClientMessageToAll(0xFFFF00AA, string);
}