Quote:
Originally Posted by Emmet_
Seriously, who gives a fuck? Why won't you even say nice to the guy for once? You're only here to tell us the meaning of 'Remote' so you can gain fame with your post-count, when you're just wasting time. We already know, now fuck off pls
Also, you should add one for /rcon ban (Ban Player) at the last one. It's quite easy.
pawn Код:
// Put this somewhere.. ShowPlayerDialog(playerid, 6969, DIALOG_STYLE_INPUT, "Ban Player", "Enter the name / ID of the player you wish to ban.", "Ban", "Cancel");
// OnDialogResponse if(dialogid == 6969) { if(!(response)) return 0; else { if(inputtext[0]) { new bool: numeric, str [128], k;
do { if(inputtext[k] >= '0' && inputtext[k] <= '9') { numeric = true; break; } k++; } while (k < strlen(inputtext));
if(numeric == true) { format(str, sizeof(str), "ban %d", strval(inputtext)); SendRconCommand(str); } else { new i, pname[24];
do { if(!(i == 65535)) { GetPlayerName(i, pname, 24); if(strfind(inputtext, pname, false) != -1) { format(str, sizeof(str), "ban %d", i); SendRconCommand(str); } } i++; } while(i < MAX_PLAYERS); } } } }
Not tested.
|
I will add ban and kick, dont worry!
Thank you!