Quote:
Originally Posted by CAR
OnPlayerDeath with reason (and Splat):
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { new string[256]; new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); if(killerid == INVALID_PLAYER_ID) { reason = "Splat"; } else { GetWeaponName(reason, weap, sizeof(weap)); } format(string, sizeof(string),"%s has Died (reason)",playername, reason); SendClientMessageToAll(0x00FF32FF,string); return 1; }
OnPlayerEnterVehicle with vehicleid
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new string[128]; format(string, sizeof(string), "You have entered a Vehicle (%d)", vehicleid); SendClientMessage(playerid, COLOR_INTERFACE, string); return 1; }
|
moO! they both failed.. The vehicles one just straight up gave errors about undefined sysmbols "vehiclename" or something like that and same with the death message..!>