15.12.2011, 07:32
Hey out there!
Im trying to make a cmd to respawn faction vehicles.
Every time i use /ftow i get "Server Unknown Command"
I might be too tired to see the error, so here is the code.
I hope someone can see the problem
Im trying to make a cmd to respawn faction vehicles.
Every time i use /ftow i get "Server Unknown Command"
I might be too tired to see the error, so here is the code.
Код:
if(strcmp(cmd, "/ftow", true) == 0) { if (PlayerInfo[playerid][pRank] == 1 && PlayerInfo[playerid][pFaction] != 255) { for(new i = 0; i < MAX_VEHICLES; i++) { if(DynamicCars[i][FactionCar] == PlayerInfo[playerid][pFaction]) { if(IsVehicleOccupied(i) == 0) { SetVehicleToRespawn(i); EngineStatus[i] = 0; LightStatus[i] = 0; Fuel[i] = GasMax; VehicleLocked[i] = 1; CarWindowStatus[i] = 1; } } } } return 1; }