CMD:korozes(playerid, params[]){ if(pInfo[playerid][pFrakcio] == RFONOK || pInfo[playerid][pFrakcio] == RENDOR) { new giveplayerid, rendor[MAX_PLAYER_NAME], civil[MAX_PLAYER_NAME], string[250], korozesiszint; GetPlayerName(playerid,rendor,sizeof(rendor)); GetPlayerName(giveplayerid,civil,sizeof(civil)); if(sscanf(params, \"ud\", giveplayerid, korozesiszint)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /korozes [Játékos ID] [Körözési szint (1-6)]\"); if(!IsPlayerConnected(giveplayerid) || 0 > giveplayerid || giveplayerid > MAX_PLAYERS) return SendClientMessage(playerid, 0xFF0000FF, \"HIBA: Nincs ilyen játékos!\"); format(string,sizeof(string),\"{00bbff}%s {008a20}Körözést adott ki {ff0000}%s{008a20}-ellen. {ff0000}Körözési szint: %d\",rendor,civil,korozesiszint); SendRendorMessage(RADIO,string); SetPlayerWantedLevel(giveplayerid, korozesiszint); } else { SendClientMessage(playerid, -1, \"{DDDDDD}>> HIBA: {FF4646}Nem vagy rendõr!\"); } return 1;} CMD:korozesle(playerid, params[]){ if(pInfo[playerid][pFrakcio] == RFONOK || pInfo[playerid][pFrakcio] == RENDOR) { new giveplayerid, rendor[MAX_PLAYER_NAME], civil[MAX_PLAYER_NAME], string[250]; GetPlayerName(playerid,rendor,sizeof(rendor)); GetPlayerName(giveplayerid,civil,sizeof(civil)); if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /korozesle [Játékos ID]\"); if(!IsPlayerConnected(giveplayerid) || 0 > giveplayerid || giveplayerid > MAX_PLAYERS) return SendClientMessage(playerid, 0xFF0000FF, \"HIBA: Nincs ilyen játékos!\"); format(string,sizeof(string),\"{00bbff}%s {008a20}Levette a körözést {ff0000}%s{008a20}-ról/rõl.\",rendor,civil); SendRendorMessage(RADIO,string); SetPlayerWantedLevel(giveplayerid, 0); } else { SendClientMessage(playerid, -1, \"{DDDDDD}>> HIBA: {FF4646}Nem vagy rendõr!\"); } return 1;}
CMD:wanted(playerid, params[]){ if(pInfo[playerid][pFrakcio] == RFONOK || pInfo[playerid][pFrakcio] == RENDOR) { new giveplayerid, string[250], civil[MAX_PLAYER_NAME],korozesiszint; if(sscanf(params, \"d\", giveplayerid, korozesiszint)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /wanted [playerid]\"); if(!IsPlayerConnected(giveplayerid) || 0 > giveplayerid || giveplayerid > MAX_PLAYERS) return SendClientMessage(playerid, 0xFF0000FF, \"HIBA: Nincs ilyen játékos!\"); GetPlayerName(giveplayerid,civil,sizeof(civil)); format(string, sizeof(string), \"{ff0000}%s{008a20} körözési szintje {00bbff}%d{008a20}!\", civil,korozesiszint); SendClientMessage(playerid,string); } else { SendClientMessage(playerid, -1, \"{DDDDDD}>> HIBA: {FF4646}Nem vagy rendõr!\"); } return 1;}