/dropcar
#3

Код:
if(strcmp(cmd, "/dropcar", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	   	{
	   	    if(gPlayerLogged[playerid] > 0)
	   	    {
				if(Packages[playerid] > 0)
				{
					SendClientMessage(playerid, COLOR_GREY,"   You must finish delivering your Materials Packages !");
					return 1;
				}
				if(Crates[playerid] > 0)
				{
					SendClientMessage(playerid, COLOR_GREY,"   You must finish delivering your Drug Crates !");
					return 1;
				}
				if(PlayerInfo[playerid][pCarTime] == 0)
				{
				    PlayerInfo[playerid][pCarTime] = 0;
					GameTextForPlayer(playerid, "~w~Car Selling ~n~~r~Drop the car at the Crane", 5000, 1);
					CP[playerid] = 1;
					SetPlayerCheckpoint(playerid, 2696.0520,-2225.8101,13.2554,8.0);
				}
				else
				{
					SendClientMessage(playerid, COLOR_GREY, "   You already sold a car, wait till your reload time is over !");
				}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "   You are not logged in !");
			}
		}
		return 1;
	}
Try That
Reply


Messages In This Thread
/dropcar - by Armando B - 05.08.2012, 13:02
Re: /dropcar - by Armando B - 05.08.2012, 13:20
Re: /dropcar - by Sig Hansen - 05.08.2012, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)