delcars
#2

It's possible. FOr delete cars use loop to scroll through all cars.
PHP код:
#include <a_samp>
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(
strcmp("/delcars",cmdtext,true) == 0)
    {
        if(
IsPlayerAdmin(playerid))
        {
            
SendClientMessage(playerid,0xFF0000FF,"You have deleted all cars on server!");
            for(new 
i;i<MAX_VEHICLES;i++)
            
DestroyVehicle(i);
            return 
1;
        }
        return 
1;
    }
    return 
0;

This should work
Reply


Messages In This Thread
delcars - by SydonaiCZ - 13.07.2011, 07:55
Re: delcars - by [MG]Dimi - 13.07.2011, 08:08
Re: delcars - by SydonaiCZ - 13.07.2011, 08:20
Re: delcars - by [ISS]Daniele_Tom - 13.07.2011, 08:22
Re: delcars - by SydonaiCZ - 13.07.2011, 08:26
Re: delcars - by [MG]Dimi - 13.07.2011, 09:40

Forum Jump:


Users browsing this thread: 2 Guest(s)