How do I make this code...
#4

pawn Код:
if(strcmp(cmd, "/destroycar", true)== 0)
    {
        if(PlayerInfo[playerid][pAdmin] > 1)
        {
            if(!IsPlayerInAnyVehicle(playerid))
                return SendClientMessage(playerid, COLOR_GRAD1, "You're not in the vehicle! ");
               
            new
                removeVeh = GetPlayerVehicleID(playerid);
               
            SendClientMessage(playerid, COLOR_GRAD1, "You have successfully removed the vehicle.");
            DestroyVehicle(removeVeh);
           
            return 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "You are not an admin!");
        }
Is that what you're looking for?
Reply


Messages In This Thread
How do I make this code... - by Join7 - 06.05.2011, 19:48
Re: How do I make this code... - by X3nZ - 06.05.2011, 19:56
Re: How do I make this code... - by Join7 - 06.05.2011, 20:36
Re: How do I make this code... - by Calgon - 06.05.2011, 20:41

Forum Jump:


Users browsing this thread: 1 Guest(s)