Give a car
#1

How do i go by make a command give a car so i do /sultan gives me a sultan or /nrg gives me a nrg-500

Manythanks.
Reply
#2

Use CreateVehicle
Reply
#3

so it will be something like

Код:
if(!strcmp(cmdtext, "/rally1", true))
		{

			Createvehicle,id 560;
			return 1;
Reply
#4

Quote:
Originally Posted by 02manchestera
so it will be something like

Код:
if(!strcmp(cmdtext, "/rally1", true))
		{

			Createvehicle,id 560;
			return 1;
pawn Код:
if(!strcmp(cmdtext, "/rally1", true))
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X,Y,Z);
CreateVehicle(560, X,Y,Z,0.0,1,1,respawntime(miliseconds));
return 1;
}
Reply
#5

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\mad-dog.pwn(38) : error 017: undefined symbol "respawntime"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Thankyou so far
Reply
#6

Quote:
Originally Posted by 02manchestera
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\mad-dog.pwn(38) : error 017: undefined symbol "respawntime"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Thankyou so far
Put the respawn time, like 60000.
Reply
#7

Код:
if(!strcmp(cmdtext, "/sultan", true))
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X,Y,Z);
CreateVehicle(560, X,Y,Z,0.0,1,1,respawntime(60000));
return 1;
}
Still getting same error any ideas

edited-- sorted it
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)