Clear cars but only the ones abandoned
#1

pawn Код:
if(strcmp(cmdtext,"/clearcars")==0)
    {
        if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,magenta,"This command is not avaliable to you!");
        {
                SendClientMessageToAll(denim,"[SYSTEM]: All cars have been deleted!");
            //if(!IsPlayerInAnyVehicle(players[playerid]))
            //{
                for(new veh;veh < MAX_VEHICLES; veh++)
                {
                        DestroyVehicle(veh);
                }
            //}
        }
        return 1;
    }

ok well my goal is to make it so if any player is in a vehicle it wont delete their vehicle but it deletes every single othr vehicle that is un occupied. Now my friend did this and i am trying to do it on my own, but seeing as im too stupid i need your help. Please give me code snippets that you think will help me complete it. Do not give me the whole script i do not want spoon fed, thank you.
Reply


Messages In This Thread
Clear cars but only the ones abandoned - by kin - 11.01.2011, 02:07
Re: Clear cars but only the ones abandoned - by _rAped - 11.01.2011, 02:13
Re: Clear cars but only the ones abandoned - by kin - 13.01.2011, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)