Getvehiclenamefromid help
#1

ok, refresh my memory how to add getvehiclenameformid to this command, had a car wreck and forgot some shit.


PHP код:
CMD:v(playeridparams[])
{
    new 
v1color1,color2idx;
    
idx GetVehicleModelIDFromName(v1);
    if (
sscanf(params,"iii",v1color1,color2))
    {
    return 
SendClientMessage(playerid, -1"Syntax: /v <vehicle ID>, color1, color2");
    }
    if ( 
getveh[playerid] > )
    {
    
DestroyVehicle(getveh[playerid]);
    
getveh[playerid] = 0;
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
    
getveh[playerid] = CreateVehicle(v1xyz90color1color2false);
    
PutPlayerInVehicle(playeridgetveh[playerid], 0);
    }else{
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
    
getveh[playerid] = CreateVehicle(v1xyz90color1color2false);
    
PutPlayerInVehicle(playeridgetveh[playerid], 0);
    }
    return 
1;

Reply


Messages In This Thread
Getvehiclenamefromid help - by -Rebel Son- - 22.03.2011, 06:37
Re: Getvehiclenamefromid help - by -Rebel Son- - 22.03.2011, 16:11
Re: Getvehiclenamefromid help - by alpha500delta - 22.03.2011, 16:38
Re: Getvehiclenamefromid help - by -Rebel Son- - 22.03.2011, 17:47
Re: Getvehiclenamefromid help - by xir - 22.03.2011, 18:04
Re: Getvehiclenamefromid help - by -Rebel Son- - 22.03.2011, 19:23
Re: Getvehiclenamefromid help - by xir - 22.03.2011, 20:21
Re: Getvehiclenamefromid help - by -Rebel Son- - 22.03.2011, 20:32
Re: Getvehiclenamefromid help - by Jefff - 22.03.2011, 20:39
Re: Getvehiclenamefromid help - by -Rebel Son- - 22.03.2011, 22:21

Forum Jump:


Users browsing this thread: 3 Guest(s)