• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] ask dm
#4
Is this correct? is the stock for the name ok? pname

Code:
public OnPlayerDeath(playerid, killerid, reason) { ? ? new string[128]; ? ? KillSpree[playerid] = 0; ? ? if(killerid!=INVALID_PLAYER_ID) ? ? { switch(KillSpree[killerid]) { ? ? case 4: { ? format(string, sizeof(string), "*%s Dominating with %d Kills", pname, KillSpree[killerid]); ? SendClientMessageToAll(COLOR_ORANGE, string); } case 6: { format(string, sizeof(string), "*%s Rampage with %d Kills", pname, KillSpree[killerid]); ? SendClientMessageToAll(COLOR_ORANGE, string); } case 8: { format(string, sizeof(string), "*%s Killing Spree with %d Kills", pname, KillSpree[killerid]); SendClientMessageToAll(COLOR_ORANGE, string); } case 10: { format(string, sizeof(string), "*%s Monster Kill with %d Kills", pname, KillSpree[killerid]); ? SendClientMessageToAll(COLOR_ORANGE, string); } case 12: { format(string, sizeof(string), "*%s Unstoppable with %d Kills", pname, KillSpree[killerid]); ? SendClientMessageToAll(COLOR_ORANGE, string); } case 14: { format(string, sizeof(string), "*%s Ultra Kill with %d Kills", pname, KillSpree[killerid]); SendClientMessageToAll(COLOR_ORANGE, string); } case 16: { format(string, sizeof(string), "*%s Godlike with %d Kills", pname, KillSpree[killerid]); SendClientMessageToAll(COLOR_ORANGE, string); } case 18: { ? format(string, sizeof(string), "*%s Wicked Sick with %d Kills", pname, KillSpree[killerid]); ? SendClientMessageToAll(COLOR_ORANGE, string); } case 20: { format(string, sizeof(string), "*%s Ludacriss Kill with %d Kills", pname, KillSpree[killerid]); SendClientMessageToAll(COLOR_ORANGE, string); } case 22: { format(string, sizeof(string), "*%s Holy Shit with %d Kills", pname, KillSpree[killerid]); SendClientMessageToAll(COLOR_ORANGE, string); } } stock pname(playerid) { ? new plname[MAX_PLAYER_NAME]; ? GetPlayerName(playerid, plname, sizeof(plname)); ? return plname; }
  Reply


Messages In This Thread
ask dm - by nbx2000 - 2020-10-05, 05:38 AM
RE: ask dm - by Worm - 2020-10-08, 01:51 PM
RE: ask dm - by Expert* - 2020-10-15, 01:54 PM
RE: ask dm - by nbx2000 - 2020-10-16, 06:09 AM
RE: ask dm - by Worm - 2020-10-16, 10:38 AM