22.04.2013, 23:52
pawn Код:
public OnPlayerConnect(playerid)
{
SendRconCommand("reloadbans");
SyerRequestCetTimerEx("OnPlalass",2000,0,"i",playerid); SetTimerEx("AntiCheatBielCOP",2000,1,"i",playerid);
OnPlayerConnect2(playerid); SetPlayerColor(playerid,COLOR_GRAD2);
ClearChatbox(playerid,20); GameTextForPlayer(playerid,"~b~Brasil ~g~Play ~r~Friends ~y~RPG",60000,4); SendClientMessage(playerid,COLOR_LIGHTBLUE,"Seja bem vindo ao Brasil PlayFriends RPG."); IPlog(playerid);
if(RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid, plname, sizeof(plname)); format(gstring, 64, "Players/%s.ini", plname);
if(!fexist(gstring)){OnPlayerCommandText(playerid,"/registrar");}
if(fexist(gstring)){OnPlayerCommandText(playerid,"/logar");}
}
return 1;