19.09.2017, 13:37
I wanna add
in
but it's giving errors on playerid
i wanna code it like this:
PHP код:
GetPlayerName(playerid, name, sizeof(name));
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
i wanna code it like this:
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{FF6600}%s {FFFFFF} has logged in as RCON Administrator", name);
SendClientMessageToAll(COLOR_WHITE, string);
return 1;
}
}