23.06.2011, 20:37
PHP код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(GetPlayerState(playerid) == 2)
{
new sendername[MAX_PLAYER_NAME];
new string[100];
new vId = GetPlayerVehicleID(playerid);
GetPlayerName(playerid,sendername,256);
format(string, 256, "%s, desligou o veнculo e saiu.",sendername);
ProxDetector(20.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
vehEngine[vId] = 0;
}
return 1;
}