• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Need assistance
#1
PHP Code:
if(strcmp(cmd, "/resfacveh", true) == 0 || strcmp(cmd, "/rffv", true) == 0) // by Mikkel Reimer {     if(IsPlayerConnected(playerid))     {         if(!IsACop(playerid)) {     SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");     return 1; } new bool:unwanted[LSPDCars]; for(new player=0; player<MAX_PLAYERS; player++)     {             if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }     } for(new LSPDCars = 1; LSPDCars <= 25; LSPDCars++) { if(!unwanted[LSPDCars]) SetVehicleToRespawn(LSPDCars); } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "SERVER: "COL_WHITE"All unused vehicles were respawned by Administrator %s.", sendername); SendClientMessageToAll(COLOR_YELLOW,string); } return 1; }


I keep getting error with the "bool:unwanted" line trying to work out another way to to detect and avoid respawning vehicles that dont have a driver
Any help or advise would be appreciated...
[Image: preview.png]
  Reply


Messages In This Thread
Need assistance - by Cruncher - 2025-10-16, 12:44 PM
RE: Need assistance - by Cappsy - 2025-10-18, 02:29 AM