23.03.2017, 15:12
Quote:
Example like this! You just need to set your variables
if(pInfo[killerid][Killstreak]) { format(text, sizeof(text), "%s killing spree has been ended by %s", PlayerName1(playerid) PlayerName2(killerid)); SendClientMessageToAll(playerid, text); } |
Код:
new kstring[256]; switch(pInfo[killerid][Killstreak]) { case 5: format(kstring,sizeof(kstring),""chat""COL_GREEN" %s has achieved a 5 killstreak "COL_WHITE"(+5 XP)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 5; case 10: format(kstring,sizeof(kstring),""chat""COL_GREEN" %s has achieved a 10 killstreak "COL_WHITE"(+10 XP)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 10;