05.11.2012, 11:10
Command Suspect not working, can anyone help?
Crashing server or just get Command you enter bla bla
Its not on english so you cant undestand :P
Crashing server or just get Command you enter bla bla
Code:
CMD:su(playerid, params[]) { new targetid, crime; new string[128]; if(PlayerInfo[playerid][pMember] == 0) return SCM(playerid,COLOR_RED,"(Policija) {C3C3C3}Niste Policajac!"); if(sscanf(params, "us[128]", targetid, crime)) return SendClientMessage(playerid, COLOR_ORANGE, "Koristi: {FFFFFF}/su [ID/Nick] [Zlocin]"); else if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}>> [GRESKA] {FFFFFF}Krivi ID!"); if(IsPlayerConnected(targetid)) { format(string, sizeof string, "Pocinili ste zlocin! Policajac %s je prijavio - %s.", GetName(playerid), crime); SendClientMessage(targetid, 0x9955DEEE, string); format(string, sizeof string, "Stavili ste tjeralicu na %s zbog - %s.", targetid, crime); SendClientMessage(playerid, 0x9955DEEE, string); format(string, sizeof string, "**SVIM JEDINICAMA** Osoba %s je sada trazena zbog - %s.", targetid, crime); SendFamMessage(1,0x9955DEEE,string); SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1); } return 1; }