26.08.2013, 08:21
Is there a way I can delete all the carz from my server PERMANENTLY?
for(new i = 0; i < MAX_VEHICLES; i++) { if(IsValidVehicle(i)) DestroyVehicle(i); }
#include < a_samp >
native IsValidVehicle( vehicleid );
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if( !strcmp( "/delallveh", cmdtext, true ) )
{
for( new i = 0; i < MAX_VEHICLES; i++ )
{
if( IsValidVehicle( i ) ) DestroyVehicle( i );
}
return 1;
}
return 0;
}
public OnVehicleSpawn(vehicleid)
{
DestroyVehicle(vehicleid);
return 1;
}