11.10.2010, 07:10
Ok i was looking through tutorials and found a "Killing Spree" Tutorial here: https://sampforum.blast.hk/showthread.php?tid=155885
I want it to announce every successfull Killing Spree,His code looks like this:
So If I Just Add String:
So It Looks Like This:
Will It Work??
I want it to announce every successfull Killing Spree,His code looks like this:
Код:
public OnPlayerDeath(playerid, killerid, reason) { KillingSpree[killerid] ++; // Means that the killer will get 1 kills KillingSpree[playerid] = 0; // Means that the player who died his killing spree will be restored to 0. if(KillingSpree[killerid] == 3) // It finds if the player is on a Killing Spree of 3 kills , you may change { // If you want to give the player that has 3 killing spree a reward do something here } return 1; }
Код:
GetPlayerName(playerid,pname,24); format(string,sizeof(string), "*** %s Is On A Killing Spree!",pname); SendClientMessageToAll(RED,string);
Код:
public OnPlayerDeath(playerid, killerid, reason) { KillingSpree[killerid] ++; // Means that the killer will get 1 kills KillingSpree[playerid] = 0; // Means that the player who died his killing spree will be restored to 0. if(KillingSpree[killerid] == 3) // It finds if the player is on a Killing Spree of 3 kills , you may change { GetPlayerName(playerid,pname,24); format(string,sizeof(string), "*** %s Is On A Killing Spree!",pname); SendClientMessageToAll(RED,string); } return 1; }