20.10.2010, 07:17
Use this function for names it makes life easier place at bottom of script.
Then wherever you put this (onplayerdeath?)
Ps the array you mentioned should have been larger.
pawn Код:
stock playername(playerid)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
return pName;
}
pawn Код:
if(KillingSpree[killerid] == 5)
{
new string[64];
format(string, sizeof(string), "( %s ) got 5 kills in a row!", playername(playerid));//this is how yopu use the playername function.
SendClientMessage(killerid, 0xFFFFFFAA, string);
}