Tow car
#1

I have a towcar company faction on my rp server but i can't attach a car to the towtruck to use /towls.

Here is the command for /towls

pawn Код:
if(strcmp(cmdtext, "/towls", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
            {
                if(IsPlayerInVehicle(playerid, 230) || IsPlayerInVehicle(playerid, 233) || IsPlayerInVehicle(playerid, 234) || IsPlayerInVehicle(playerid, 235) || IsPlayerInVehicle(playerid, 325) || IsPlayerInVehicle(playerid, 314))
                {
                    if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
                    {
                        if(PlayerInfo[playerid][pTow] >= 1)
                        {
                            PlayerInfo[playerid][pTow] -= 1;
                            CP[playerid] = 75;
                            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 !");
                }
            }
        }
    }
Reply


Messages In This Thread
Tow car - by trulis - 27.02.2012, 16:36
Re: Tow car - by trulis - 28.02.2012, 19:39
Re: Tow car - by milanosie - 28.02.2012, 21:55
Re: Tow car - by trulis - 29.02.2012, 16:14
Re: Tow car - by milanosie - 29.02.2012, 16:14
Re: Tow car - by trulis - 29.02.2012, 16:21

Forum Jump:


Users browsing this thread: 2 Guest(s)