#7

Код:
 CMD:buycar(playerid, params[])
{
	new string[128];
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(!IsPlayerInRangeOfPoint(playerid, 2, 545.6661,-1292.2437,17.2422)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the vehicles dealership.");
	if(PlayerInfo[playerid][pVIP] >= 2)
	{
		if(PlayerInfo[playerid][vModel] && PlayerInfo[playerid][vVModel] && PlayerInfo[playerid][vBModel])
		{
			format(string, sizeof(string), "You already own vehicles ID %d and %d.", PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVVeh]);
			SendClientMessage(playerid, COLOR_GREY, string);
		    return 1;
		}
		else ShowDialog(playerid, 10);
	    return 1;
	}
	if(PlayerInfo[playerid][vModel])
	{
		format(string, sizeof(string), "You already own vehicle ID %d.", PlayerInfo[playerid][pVeh]);
		SendClientMessage(playerid, COLOR_GREY, string);
	    return 1;
	}
	ShowDialog(playerid, 10);
	return 1;
}
Reply


Messages In This Thread
cars - by Rabea - 13.08.2014, 14:39
Re: cars - by Rabea - 13.08.2014, 16:02
Re: cars - by Rabea - 13.08.2014, 18:34
Re: cars - by Blademaster680 - 13.08.2014, 18:43
Re: cars - by Rabea - 13.08.2014, 19:31
Re: cars - by Don_Cage - 13.08.2014, 20:08
Re: cars - by Rabea - 13.08.2014, 21:05
Re: cars - by Rabea - 13.08.2014, 21:56
Re: cars - by Rabea - 14.08.2014, 07:33
Re: cars - by Rabea - 14.08.2014, 10:17

Forum Jump:


Users browsing this thread: 1 Guest(s)