21.02.2010, 18:39
Hello, the command below isn't spawning the players car.
Does anyone have an idea?
Код:
command(getcar, playerid, params[]) { #pragma unused params if(DrugsHolding[playerid] > 0 || UncollectedCar[playerid] == 1 || HasFishingMarker[playerid] > 0 || DropCarRun[playerid] > 0) { SendClientMessage(playerid, COLOR_WHITE, "You must drop your drugs/fish/car pickup/car scrap off first."); return 1; } DespawnOwnedCar(playerid); GenerateOwnedCar(playerid); UncollectedCar[playerid] = 1; SendClientMessage(playerid, COLOR_WHITE, "The car has been re-spawned (at the last known position)."); SetPlayerCheckpoint(playerid, pStats[playerid][pCarX], pStats[playerid][pCarY], pStats[playerid][pCarZ], 10.0); return 1; }