08.11.2013, 21:57
Why dont happen anything if i type this command?
Код:
CMD:report(playerid,params[]) { if(GetPVarInt(playerid,"adminlevel") < 1) return Text_Send(playerid,"Nincs jogosultsбgod a parancs hasznбlatбhoz!",""CT_INDIANRED"You are not allowed to use this command."); new grund[148], id, givid, giveplayer[MAX_PLAYER_NAME]; if(sscanf(params, "k<pon>", givid,grund)) { Text_2Send(playerid,"Hasznбlat: %s","Usage: %s","/akill (PLAYER) [reason]"); return 1; } if(givid == INVALID_PLAYER_ID) return Text_Send(playerid,"Йrvйnytelen jбtйkos!","Invalid player!"); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(givid, giveplayer, sizeof(giveplayer)); format(astring,sizeof(astring),"{FFFFFF}[Jelentйs] {FF00EA}%s(%d) {FFFFFF}бltal jelentett: {99FF99}%s(%d) {FFFFFF}||| {FFFF99}[Йsszeru: %s]","{FFFFFF}[REPORT] {FF00EA}%s(%d) {FFFFFF}reported by: {99FF99}%s(%d) {FFFFFF}||| {FFFF99}[Reason: %s]",givid,id,GetName(playerid),playerid,grund); SendAdminMessage(1, COLOR_RED, astring); Text_Send(playerid,COLOR_RED_"A jelentйst elkьldtйk az online adminok!","Your report has been sent to the online admins!"); return 1; }