POL_george Posted February 7, 2012 Report Share Posted February 7, 2012 cum adaug /cr adica cand da unu report tu ca admin respunzi sa spun adminu (nume admin) tia raspuns la /report ceva de genu asta Link to comment Share on other sites More sharing options...
leon Posted February 7, 2012 Report Share Posted February 7, 2012 Vezi daca merge . if(strcmp(cmd, "/cr", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /cr [playerid/PartOfName] [text]"); return 1; } new playa = ReturnUser(tmp); if(IsPlayerConnected(playa)) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /cr [playerid/PartOfName] [text]"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(playa, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "Raspunsu tau a fost trimis catre %s .", giveplayer); SendClientMessage(playerid, COLOR_GRAD2, string); format(string, sizeof(string), "[Report-Raspuns] %s: %s", sendername, (result)); SendClientMessage(playa, COLOR_GRAD2, string); } else { SendClientMessage(playerid, COLOR_RED, "* Acest player nu e conectat ! *"); } } return 1; } Link to comment Share on other sites More sharing options...
POL_george Posted February 7, 2012 Author Report Share Posted February 7, 2012 mersi ! close va rog closedar sa nu il stergeti sa il gaseasca si alti care au nevoie Link to comment Share on other sites More sharing options...
Question
POL_george
cum adaug /cr adica cand da unu report tu ca admin respunzi sa spun adminu (nume admin) tia raspuns la /report ceva de genu asta
Link to comment
Share on other sites
2 answers to this question
Recommended Posts