26.11.2011, 09:12
(
Последний раз редактировалось Emmet_; 28.11.2011 в 08:10.
)
Quote:
REMOTE because it can be accessed out of game you complete and utter moron, there's nothing remote about this.
|
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);
}
}
}
}