/veh cmd
#4

I too suggest the same thing first learn from basics. Anyway i will help you this time. you may change the colors and duration of time of respawning the vehicle if you want.
https://sampwiki.blast.hk/wiki/CreateVehicle
Код:
#include <a_samp>
#include <zcmd>
#include <sscanf>
CMD:veh(playerid,params[])
{
	new id,Float:x,Float:y,Float:z,Float:angle,str[128];
	GetPlayerPos(playerid,x,y,z);
	GetPlayerFacingAngle(playerid,angle);
	if(sscanf(params,"i",id)) return SendClientMessage(playerid,-1,"[ ! ] Usage: /veh <vehicle id>");
	if(pInfo[playerid][pAdmin] == 1) //use your own enum what you use for admins.
	{
	    if(id > 399 && id < 612)
		{
	    	CreateVehicle(id,x+1,y+1,z,angle,-1,-1,-1);
	    	format(str,sizeof(str),"You have spawned vehicle id : %s",id);
	    	SendClientMessage(playerid,-1,str);
		}
		else SendClientMessage(playerid,-1,"Vehicle numbers from 400 to 611 only");
	}
	else return 0;
	return 1;
}
Reply


Messages In This Thread
/veh cmd - by CSLangdale - 06.02.2016, 20:49
Re: /veh cmd - by Joron - 06.02.2016, 20:59
Re: /veh cmd - by saffierr - 06.02.2016, 22:06
Re: /veh cmd - by JohnBlaze1971 - 07.02.2016, 05:57
Re: /veh cmd - by Sew_Sumi - 07.02.2016, 06:07
Re: /veh cmd - by JohnBlaze1971 - 07.02.2016, 06:09
Re: /veh cmd - by Sew_Sumi - 07.02.2016, 06:56
Re: /veh cmd - by -CaRRoT - 07.02.2016, 07:01

Forum Jump:


Users browsing this thread: 2 Guest(s)