What's Wrong
#1

pawn Код:
#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;
}
And..
pawn Код:
public OnPlayerSpawn( playerid )
{
    IfItsRock( playerid );
    return 1;
}
This function work's in pawno but when i go ingame nothing happens, it doesen't loggin me as rcon admin...
Reply


Messages In This Thread
CallRemoteFunction Problem - by Rock_Ro - 26.06.2011, 12:02
Re: What's Wrong - by Skaizo - 26.06.2011, 12:04
Re: What's Wrong - by Rock_Ro - 26.06.2011, 12:07
Re: What's Wrong - by PrawkC - 26.06.2011, 12:07
Re: What's Wrong - by Rock_Ro - 26.06.2011, 12:09
Re: What's Wrong - by Skaizo - 26.06.2011, 12:15
Re: What's Wrong - by PrawkC - 26.06.2011, 12:17
Re: What's Wrong - by Rock_Ro - 26.06.2011, 12:18
Re: What's Wrong - by Steve M. - 26.06.2011, 12:22
Re: What's Wrong - by Rock_Ro - 26.06.2011, 12:27

Forum Jump:


Users browsing this thread: 3 Guest(s)