/Tow Command
#3

there have
pawn Код:
if(strcmp(cmd,"/towcar",true)==0)
 {
    if(PlayerInfo[playerid][pJob] == 7 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
     {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
         {
            if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
             {
                DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
             }
            else
             {
                AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
             }
          }
        else
         {
            SendClientMessage(playerid, COLOR_RED, "You are not in a tow truck");
         }
     }
    else
     {
        SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command");
     }
    return 1;
 }
Reply


Messages In This Thread
/Tow Command - by Tommy_Mandaz - 03.04.2011, 03:07
Re: /Tow Command - by [UG]Scripter - 03.04.2011, 03:49
Respuesta: /Tow Command - by Daniel-92 - 03.04.2011, 04:07
Re: /Tow Command - by HyperZ - 03.04.2011, 04:42
Re: /Tow Command - by Tommy_Mandaz - 03.04.2011, 11:27
Re: /Tow Command - by Tommy_Mandaz - 03.04.2011, 12:39
Re: /Tow Command - by Tommy_Mandaz - 03.04.2011, 17:11
Re: /Tow Command - by Tommy_Mandaz - 03.04.2011, 18:27

Forum Jump:


Users browsing this thread: 2 Guest(s)