Respawn used cars
#1

Im trying to get this script to work. Basically the idea is to respawn all cars that are unused. So if someone is IN the car, it doesn't get respawn. the code
Код:
  {
        if(IsPlayerInAnyVehicle(playerid) {  unwanted[GetPlayerVehicleID(playerid])=true; }
        }
is not compiling and it gives me errors. i have no clue what the problem is. if i take it out it compiles fine. but if someone is driving a car WITHOUT that line in it will kick them out and respawn the car.

full script:

Код:
if(strcmp(cmd, "/respawnallcars", true) == 0)
{
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
format(string, sizeof(string), "AP:RP SERVER NOTICE");
SendClientMessageToAll(COLOR_BRIGHTRED,string);
format(string, sizeof(string)," An AP:RP Staff Member has respawned all vehicles",giveplayer);
SendClientMessageToAll(COLOR_GREY,string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_WHITE,string);
printf("%s",string);

       {
        if(IsPlayerInAnyVehicle(playerid) {  unwanted[GetPlayerVehicleID(playerid])=true; }
        }

for(new v = 0; v <= MAX_VEHICLES; v++)
SetVehicleToRespawn(v);
}
any help is appreciated.

thank you
Reply


Messages In This Thread
Respawn unused cars - by Infinitas - 30.10.2010, 04:31
Re: Respawn used cars - by randomkid88 - 30.10.2010, 04:41
Re: Respawn used cars - by Infinitas - 30.10.2010, 04:50
Re: Respawn used cars - by randomkid88 - 30.10.2010, 17:15
Re: Respawn used cars - by <Weponz> - 30.10.2010, 17:19
Re: Respawn used cars - by Infinitas - 31.10.2010, 00:34
Re: Respawn used cars - by randomkid88 - 31.10.2010, 05:31
Re: Respawn used cars - by Infinitas - 01.11.2010, 02:34
Re: Respawn used cars - by (SF)Noobanatior - 01.11.2010, 05:15
Re: Respawn used cars - by Infinitas - 01.11.2010, 17:03

Forum Jump:


Users browsing this thread: 2 Guest(s)