13.07.2016, 12:46
/tdp
/cnp
It has three years we do not move more , I forgot a lot and decided to reopen . Please help me .
Quote:
if(strcmp(cmd, "/tdp", true) == 0) { new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), P_CONTAS, aname); if(dini_Int(file,"Tenente") >= 0){ new plid; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, Vermelho, "* Digite: /tdp [id]."); return 1; } |
Quote:
f(strcmp(cmd, "/cnp", true) == 0) { new id; //new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)){ SendClientMessage(playerid, Vermelho, "/cnp [id]"); return 1; } id = strval(tmp); new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), P_CONTAS, aname); if(dini_Int(file,"Tenente") == 1) { new pname[MAX_PLAYER_NAME]; GetPlayerName(id, pname, MAX_PLAYER_NAME); format(file2, sizeof(file2), P_CONTAS, pname); dini_IntSet(file2, "Punidoo", 0); format(string, sizeof(string),"O Tenente %s(ID: %d) colocou %s(ID:%d) na policia novamente", aname, playerid,pname,id); SendClientMessageToAll(0xFF66FFAA, string); } else { SendClientMessage(playerid, Vermelho, "** {6DB3FE}Vocк nгo tem permissгo."); } return 1; } |