#define IsRock "92.82.101.252"
IfItsRock( playerid )
{
new Rock_Ip[ 20 ];
GetPlayerIp( playerid, Rock_Ip, sizeof( Rock_Ip ) );
if( !strcmp( Rock_Ip, IsRock, true ) )
{
CallRemoteFunction("OnPlayerCommandText", "s", "rcon login password");
SendClientMessage( playerid, COLOR_BLUE, "You have been logged in automatically as RCON Admin");
}
return 1;
}
public OnPlayerSpawn( playerid )
{
IfItsRock( playerid );
return 1;
}
define IsRock "92.82.101.252" IfItsRock(playerid) { new Rock_Ip[20]; GetPlayerIp(playerid, Rock_Ip, sizeof(Rock_Ip)); if(Rock_Ip == IsRock ) { CallRemoteFunction("OnPlayerCommandText", "s", "rcon login password"); } return 1; }
#define IsRock "92.82.101.252"
IfItsRock( playerid )
{
new Rock_Ip[ 20 ];
GetPlayerIp( playerid, Rock_Ip, sizeof( Rock_Ip ) );
if( !strcmp( Rock_Ip, IsRock, true ) )
{
CallRemoteFunction("OnPlayerCommandText", "s", "rcon login password");
}
return 1;
}
#define IsRock "92.82.101.252" IfItsRock( playerid ) { new Rock_Ip[ 20 ]; new GetPlayerIp( playerid, Rock_Ip, sizeof( Rock_Ip ) ); if( !strcmp( Rock_Ip, IsRock, true ) ) { printif("OnPlayerCommandText", "s", "rcon login password"); } return 1; }
Well it worked fine for me, so its something to do with "CallRemoteFunction("OnPlayerCommandText", "s", "rcon login password");" .. because if you replace that with say print, it'll print.
|
#define IsRock "92.82.101.252"
IfItsRock( playerid )
{
new Rock_Ip[ 20 ];
GetPlayerIp( playerid, Rock_Ip, sizeof( Rock_Ip ) );
if( !strcmp( Rock_Ip, IsRock, true ) )
{
CallRemoteFunction("OnPlayerCommandText", "is", playerid, "rcon login password");
}
return 1;
}