Jump to content
  • 0

/buycar pentru playeri si vip


MAXYMUSS

Question

Problema intalnita (descriere):Atunci cand un player (fara vip) foloseste /buycar poate cumpara 3 masini , eu doresc atunci cand playeru are vip sa mai poata cumpara inca 2  (if(PlayerData[playerid][pPcarkey4] != 999 && PlayerData[playerid][pPcarkey5] != 999)

am incercat sa fac eu ceva cu if(PlayerData[playerid][pDonateRank] < 1) dar nu am reusit
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):

	if(strcmp(cmd, "/buycar", true) == 0)
 	{
		if(PlayerData[playerid][pLevel] < 3)
		{
			SendClientMessage(playerid,COLOR_WHITE," Iti trebuie level `3` pentru a-ti cumpara un vehicul personal !");
			return 1;
		}
		if(PlayerData[playerid][pPcarkey] != 999 && PlayerData[playerid][pPcarkey2] != 999 && PlayerData[playerid][pPcarkey3] != 999) return SendClientMessage(playerid, COLOR_GREY, "Doar VIP pot cumpara mai mult de 3 masini.");
		if(IsPlayerInRangeOfPoint(playerid, 5.0, 328.9902,-1513.3729,36.0391))
		{
			ShowPlayerDialog(playerid, 140, DIALOG_STYLE_LIST, "Masini personale:", "Masini NormalenMasini Rapide (Sport)nMotociclete/ScuterenBarci/Elicoptere", "Alege", "Anulare");
  		}
		else
 		 {
			SendClientMessage(playerid,COLOR_WHITE,"Nu te aflii la Dealership !");
 		 }
		return 1;
	}

Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Faci o verificare in care pui pVip sau pDonator ce ai tu,exemplu:

Pui un if si dup'aia.

PlayerInfo[playerid][pDonator] = 0;
{
SendClientMessage(playerid, -1, "Nu ai donator pentru a cumpara 2 masini.");
return 1;
}

 

 

Link to comment
Share on other sites

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.