/tow command
#3

Код:
//-------------------------------------[TOW]--------------------------------------------
	if(strcmp(cmdtext, "/tow", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
			{
			    if(IsPlayerInVehicle(playerid, 272) || IsPlayerInVehicle(playerid, 273) || IsPlayerInVehicle(playerid, 274) || IsPlayerInVehicle(playerid, 275))
				{
				    if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
					{
					    if(PlayerInfo[playerid][pTow] >= 1)
					    {
					        PlayerInfo[playerid][pTow] -= 1;
					    	CP[playerid] = 111;
							SetPlayerCheckpoint(playerid, 2412.4646,-1426.3083,23.9848, 5.0);
							SendClientMessage(playerid, COLOR_YELLOW, "Drive to Warehouse to destroy the towed car.");
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GRAD1, "	You cannot tow any car till PayDay.");
						}
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GRAD1, "   You dont towed a car !");
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD1, "   You are not in a Tow Truck !");
				}
			}
		}
	}
That is command
Reply


Messages In This Thread
/tow command - by Ne0 - 20.08.2010, 19:38
Re: /tow command - by killer98p - 20.08.2010, 19:43
Re: /tow command - by Ne0 - 20.08.2010, 19:45
Re: /tow command - by killer98p - 20.08.2010, 19:50
Re: /tow command - by Gabb0411 - 20.08.2010, 19:56
Re: /tow command - by killer98p - 20.08.2010, 19:57
Re: /tow command - by Ne0 - 20.08.2010, 20:11
Re: /tow command - by Ne0 - 20.08.2010, 20:33
Re: /tow command - by wups - 20.08.2010, 21:45
Re: /tow command - by Ne0 - 20.08.2010, 22:04

Forum Jump:


Users browsing this thread: 2 Guest(s)