Personal Vehicle Help!
#1

Hello forum samp.

Im trying to make a personal veh command.
When i type /elegy - to spawn an elegy , when i type /elegy second time the first car get destroyed not with DestroyVehicle but with the command. I mean if i exit the car let the first car get destroyed automaticly by the command.

I tried to make it many times in much diferrent ways ,but nothing happened.

So i am stuck here.

Код:
	if (strcmp("/elegy", cmdtext, true, 10) == 0)
	{
	if(IsPlayerInAnyVehicle(playerid))  return SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a car.");
	new Float:X, Float:Y, Float:Z, elegy;
	GetPlayerPos(playerid, X, Y, Z);
	elegy = CreateVehicle(562, X, Y, Z, 0.0, 0, 0, 0);
	PutPlayerInVehicle(playerid, elegy, 0);
	return 1;
	}
Any ideas? +Rep for the dude who will help me.
Reply


Messages In This Thread
Personal Vehicle Help! - by necrobg3 - 16.08.2012, 20:16
Re: Personal Vehicle Help! - by necrobg3 - 17.08.2012, 07:13
Re: Personal Vehicle Help! - by FalconX - 17.08.2012, 07:49
Re: Personal Vehicle Help! - by necrobg3 - 17.08.2012, 10:58
Re: Personal Vehicle Help! - by necrobg3 - 17.08.2012, 13:35
AW: Personal Vehicle Help! - by Nero_3D - 17.08.2012, 14:19
Re: Personal Vehicle Help! - by necrobg3 - 17.08.2012, 17:13
AW: Re: Personal Vehicle Help! - by Nero_3D - 17.08.2012, 18:04
Re: Personal Vehicle Help! - by necrobg3 - 17.08.2012, 19:46

Forum Jump:


Users browsing this thread: 2 Guest(s)