SendRconCommand(''rcon_password ****");
#define RCON "*****"
SendRconCommand(''rcon_password %s", RCON);
#define RCON "*****"
new str[64]; format(str,64,"rcon_password %s",RCON); SendRconCommand(str);
Originally Posted by Jefff
Or xD
Код:
#define RCON "*****" Код:
new str[64]; format(str,64,"rcon_password %s",RCON); SendRconCommand(str); |
if(strfind(text, "%s", true) != -1)
{
SendClientMessage(playerid, COLOR_RED, "DUMMY you almost said the rcon pass");
return 0;
}
new a;
if(a = RCON)
{
SendClientMessage(playerid,COLOR,"DUMMY, You almost said the rcon pass");
}
Originally Posted by ♣ ©ⓤⓝⓔⓞ ♣
add this under OnPlayerText:
pawn Код:
|
C:\DOCUME~1\Tim\BUREAU~1\NIEUWE~2\GAMEMO~1\\****.pwn(3153) : warning 211: possibly unintended assignment
C:\DOCUME~1\Tim\BUREAU~1\NIEUWE~2\GAMEMO~1\****.pwn(3153) : error 006: must be assigned to an array
C:\DOCUME~1\Tim\BUREAU~1\NIEUWE~2\GAMEMO~1\****.pwn(3153) : warning 204: symbol is assigned a value that is never used: "a"
if(strfind(RCON_PASS, "%s", true) != -1)
{
SendClientMessage(playerid, COLOR_RED, "FAGGOT YOU ALMOST SAID THE RCON PASS IN CHAT");
return 0;
}
if(strfind(text, RCON, true) != -1) { SendClientMessage(playerid, COLOR_RED, "DUMMY you almost said the rcon pass"); return 0; }
#define RCON_PASSWORD "password"
SendRconCommand("rcon_password " RCON_PASSWORD);
if(strfind(text, RCON_PASSWORD, true) != -1)
return !SendClientMessage(playerid, COLOR_RED, "DUMMY you almost said the rcon pass");
new pass[50];
GetServerVarAsString("rcon_password", pass, 50);