15.02.2010, 11:17
were do i put these and my script from scratch
i know under player coenncet but were here is the full onplayerconncet
can someone add it were it should be and repost it plz thabjs and advanced
Код:
PlayerInfo[playerid][pCash] = dollah; PlayerInfo[playerid][pLevel] = 0; PlayerInfo[playerid][pAdmin] = 0;
Код:
public OnPlayerConnect(playerid)
{
new playrname[MAX_PLAYER_NAME];
new connect[128];
GetPlayerName(playerid, playrname, sizeof(playrname));
format(connect, sizeof(connect), "%s.cer", playrname);
if(fexist(connect))
{
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "You are registered, please login with /login password");
return 1;
}
else
{
gPlayerAccount[playerid] = 0;
SendClientMessage(playerid, COLOR_YELLOW, "You are new here or not registered, please register with /register password");
}
return 1;
}

