xxSPEEDYxx Posted May 7, 2011 Report Share Posted May 7, 2011 sallsvreau sa fac comanda asta: if(!strcmp(cmdtext, "/hits", true)) { new count = 0; SendClientMessage(playerid, COLOR_MSG, "Listing currently placed hits:"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && hit[i] > 0) { new string[256]; format(string, 256, "Hit on %s (%i) for $%i", ReturnPlayerName(i), i, hit[i]); SendClientMessage(playerid, COLOR_FOUND, string); count++; } } if(count == 0) { SendClientMessage(playerid, COLOR_ERROR, "No hits placed at this time!"); } } return 0; } sa arate acolo cand scriu /hits sa fie in dialog nu cu sendclientmessage...cum se poate face...pls help!! Fara reclama in semnatura! Link to comment Share on other sites More sharing options...
IstuntmanI Posted May 7, 2011 Report Share Posted May 7, 2011 Incearca asa:[pawn]//sus in script pui#define DIALOG_HITS dialog //schimba "dialog" cu ce id vrei sa aibe dialogul//comandaif(strcmp(cmdtext, "/hits", true) == 0){ new count = 0, string[ 2048 ]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && hit > 0) { format(string, 2048, "%s\nHit on %s (%i) for $%i", string, ReturnPlayerName(i), i, hit); count++; } } if(count == 0) { format(string, 128, "\nNo hits placed at this time !"); } return ShowPlayerDialog(playerid, DIALOG_HITS, DIALOG_STYLE_MSGBOX, "Listing currently placed hits:", string, "OK", "");}[/pawn]Sper sa mearga. Link to comment Share on other sites More sharing options...
xxSPEEDYxx Posted May 7, 2011 Author Report Share Posted May 7, 2011 merge ms stuntman;DEDIT:) al 200-lea meu post:D Fara reclama in semnatura! Link to comment Share on other sites More sharing options...
Question
xxSPEEDYxx
salls
vreau sa fac comanda asta:
sa arate acolo cand scriu /hits sa fie in dialog nu cu sendclientmessage...cum se poate face...pls help!!
Fara reclama in semnatura!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts