Delete cars created by /veh
#4

pawn Код:
new VehVehicle; //At the top of your script

VehVehile = CreateVehicle(bla,bla,...); //Where you create the vehicle

if(strcmp(cmd, "/destroycar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
           {
            if (PlayerInfo[playerid][pAdmin] >= 5)
               {
                    if(GetPlayerVehicleID(playerid) == VehVehicle)
                    {
                        DestroyVehicle(GetPlayerVehicleID(playerid));
                        return 1;
                    }
               }
              else
              {
                SendClientMessage(playerid, COLOR_WHITE, "You are not Admin!");
            }
        }
    }
Didn't test it
Reply


Messages In This Thread
Delete cars created by /veh - by TheNavigator - 13.10.2011, 18:24
Re: Delete cars created by /veh - by MonkZemun - 13.10.2011, 19:53
Re: Delete cars created by /veh - by TheNavigator - 13.10.2011, 20:33
Re: Delete cars created by /veh - by AeroBlast - 13.10.2011, 20:38
Re: Delete cars created by /veh - by TheNavigator - 13.10.2011, 20:44
Re: Delete cars created by /veh - by TheNavigator - 16.10.2011, 14:26
Re: Delete cars created by /veh - by Vince - 17.10.2011, 14:37
Re: Delete cars created by /veh - by TheNavigator - 20.10.2011, 21:18
Re: Delete cars created by /veh - by =WoR=Varth - 20.10.2011, 22:01
Re: Delete cars created by /veh - by Vince - 20.10.2011, 22:39

Forum Jump:


Users browsing this thread: 4 Guest(s)