Posts: 512
Threads: 121
Joined: Sep 2013
Quote:
Originally Posted by BenzoAMG
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { if(killerid != INVALID_PLAYER_ID && killerid != playerid) { if(GetPlayerWantedLevel(playerid) >= 6) { SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); new fstr[150], dname[MAX_PLAYER_NAME], kname[MAX_PLAYER_NAME]; GetPlayerName(playerid, dname, MAX_PLAYER_NAME); GetPlayerName(killerid, kname, MAX_PLAYER_NAME); format(fstr, sizeof(fstr), "Player %s(%d) has killed %s(%d) with a wanted level of 6, and has claimed a bonus score!", kname, killerid, dname, playerid); //SetPlayerWantedLevel(playerid, 0); } } return 1; }
|
Thanks my friend how about senclientmessagetoall?
I also want to notify to all players that "Playername has a wanted level of 6. Kill him to get score bonus"