13.07.2011, 08:08
It's possible. FOr delete cars use loop to scroll through all cars.
This should work
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;
}