SA-MP Forums Archive
plz help me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: plz help me (/showthread.php?tid=127867)



plz help me - Keeboo13 - 15.02.2010

were do i put these and my script from scratch

Код:
	PlayerInfo[playerid][pCash] = dollah;
  	PlayerInfo[playerid][pLevel] = 0;
	PlayerInfo[playerid][pAdmin] = 0;
i know under player coenncet but were here is the full onplayerconncet
Код:
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;
}
can someone add it were it should be and repost it plz thabjs and advanced