Jump to content
  • 0

Cum schimb levelul de inceput??


Question

7 answers to this question

Recommended Posts

Posted

LA

public OnPlayerLogin(playerid,password[])
ai asa
		if(PlayerInfo[playerid][pReg] == 0)
		{
			PlayerInfo[playerid][pLevel] = 1;
			PlayerInfo[playerid][pSHealth] = 0.0;
			PlayerInfo[playerid][pHealth] = 50.0;
			PlayerInfo[playerid][pPos_x] = 2246.6;
			PlayerInfo[playerid][pPos_y] = -1161.9;
			PlayerInfo[playerid][pPos_z] = 1029.7;
			PlayerInfo[playerid][pInt] = 15;
			PlayerInfo[playerid][pLocal] = 255;
			PlayerInfo[playerid][pTeam] = 3;
			PlayerInfo[playerid][pModel] = 264;
			new randphone = 1000 + random(8999);//minimum 1000  max 9999 //giving one at the start
			PlayerInfo[playerid][pPnumber] = randphone;
			PlayerInfo[playerid][pPhousekey] = 255;
			PlayerInfo[playerid][pPbiskey] = 255;
			PlayerInfo[playerid][pAccount] = 50000;
			PlayerInfo[playerid][pReg] = 1;
			GivePlayerMoney(playerid, 5000);
		}
La
PlayerInfo[playerid][pLevel] = 1;

Modifici levelul care vrei sa il aibe playerul !

Daca nu ai inteles ceva lasa replay!

Posted

modifici si acolo si aici :[pawn]GivePlayerMoney(playerid, 5000);[/pawn]

Din cate vad eu acolo  PlayerInfo[playerid][pAccount] = 50000; e 50k iar unde mi-ai zis tu sa modific e 5k!!!

Posted

Din cate vad eu acolo  PlayerInfo[playerid][pAccount] = 50000; e 50k iar unde mi-ai zis tu sa modific e 5k!!!

GivePlayerMoney(playerid, 5000); - bani din mana

PlayerInfo[playerid][pAccount] = 50000; - bani din banca

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.