Hello
#3

Even though this should be under scripting help, the code to do such thing should be:

pawn Код:
#include <a_samp>
#include <zcmd>

new PlayerVehicle[MAX_PLAYERS];

CMD:v(playerid, params[])
{
     new Float:x, Float:y, Float:z;
     GetPlayerPos(playerid, x, y, z);
     PlayerVehicle[playerid] = CreateVehicle(522, x, y, z, 0, 0, 0, -1);
     return 1;
}

public OnPlayerConnect(playerid)
{
     PlayerVehicle[playerid] = -1;
     return 1;  
}

public OnPlayerExitVehicle(playerid)
{
     DestroyVehicle(PlayerVehicle[playerid]);
     return 1;
}
Code not tested, however adjust it to your needs.
Reply


Messages In This Thread
Hello - by Hybris - 04.03.2015, 17:09
Re: Hello - by Hybris - 05.03.2015, 06:35
Re: Hello - by Sledgehammer - 05.03.2015, 06:45
Re: Hello - by Hybris - 05.03.2015, 07:59
Re: Hello - by CalvinC - 05.03.2015, 08:07
Re: Hello - by Hybris - 05.03.2015, 08:10
Re: Hello - by Hybris - 05.03.2015, 08:46
Re: Hello - by CalvinC - 05.03.2015, 08:48
Re: Hello - by Hybris - 05.03.2015, 09:06
Re: Hello - by CalvinC - 05.03.2015, 09:17

Forum Jump:


Users browsing this thread: 1 Guest(s)