http://wiki.sa-mp.com/wiki/SetPlayerWantedLevelhttp://wiki.sa-mp.com/wiki/GetPlayerWantedLevelÖléskor körözés hozzáadása
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerWantedLevel(killerid) < 6)
{
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
} else return 1;
return 1;
}
Játékos körözésének lekérdezése [sscanf, zcmd]
CMD:getplayerwanted(playerid, params[])
{
new player1, string[128], name[MAX_PLAYER_NAME];
if(sscanf(params, \"d\", player1)) return SendClientMessage(playerid, 0xFF0000FF, \"USAGE: /getplayerwanted [playerid]\");
if(!IsPlayerConnected(player1)) return SendClientMessage(playerid, 0xFF0000FF, \"That player in not connected\");
GetPlayerName(player1, name, sizeof(name));
format(string, sizeof(string), \"%s körözési szintje %d!\", name, GetPlayerWantedLevel(player1));
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}