Jump to content

Question

Posted (edited)

Problema intalnita (descriere):Cum as putea sa fac la comanda /buyvehicle sa imi verifice ca jucatorul x are deja un vehicul cumparat,si sa ii trimita un mesaj.
Ero(area / rile) / warning-(ul / urile)://
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:buyvehicle(playerid, params[])
{
	if ( GetPVarInt( playerid, "AccountLocked" ) == 1 )
 	return SCM( playerid, COLOR_WHITE, "Contul tau este blocat, deblocheaza-l folosind comanda /unlockacc." );
	if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You are not logged in.");
	if(IsPlayerInRangeOfPoint(playerid,5.0,2132.0627,-1150.6255,24.1395))
	{
		ShowPlayerDialog(playerid, DIALOG_DSG, DIALOG_STYLE_LIST, "Buy a vehicle", "Cheap cars\nRegular cars\nExpensive cars\nBikes\nAir Vehicles","Select", "Cancel");
	}
	else SendClientMessage(playerid, COLOR_ERROR,"You are not at dealership.");
	return 1;
}


 

Edited by ciprian2013

4 answers to this question

Recommended Posts

  • 0
Posted
if(GetSpawnedVeh(playerid) > 0) return SendClientMessage(playerid, -1, "Ai deja o masina cumparata");

 

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

  • 0
Posted

Imi poti spune cate sloturi poate avea un player si sa imi dai o poza cu /stats sa imi dau seama

giphy.gif

  • 0
Posted

Un singur slot.

		    new playerip[16];
			GetPlayerIp(targetid,playerip,sizeof(playerip));
		    format(gString, sizeof(gString), "House:[%d] Business:[%d] Vehicle:[%d] Interior:[%d] VirtualWorld:[%d] E-Mail:[%s]", PlayerInfo[targetid][pHouseKey], PlayerInfo[targetid][pBizzKey], GetSpawnedVeh(targetid), GetPlayerInterior(targetid), GetPlayerVirtualWorld(targetid), PlayerInfo[targetid][pEmail]);
			SendClientMessage(playerid, COLOR_LIGHTRED, gString);
		}
		SendClientMessage(playerid, COLOR_SERVER,"_______________________________________");
	}

	return 1;
}

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.