Get car command not working
#1

Hello, the command below isn't spawning the players car.

Код:
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;
}
Does anyone have an idea?
Reply


Messages In This Thread
Get car command not working - by acade - 21.02.2010, 18:39
Re: Get car command not working - by Correlli - 21.02.2010, 20:04
Re: Get car command not working - by acade - 21.02.2010, 20:32
Re: Get car command not working - by Rizard - 21.02.2010, 21:22
Re: Get car command not working - by Correlli - 21.02.2010, 21:40
Re: Get car command not working - by acade - 22.02.2010, 21:43
Re: Get car command not working - by Correlli - 22.02.2010, 21:48
Re: Get car command not working - by adsy - 22.02.2010, 21:52
Re: Get car command not working - by acade - 22.02.2010, 22:07
Re: Get car command not working - by acade - 23.02.2010, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)