11.01.2011, 02:07
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.