RC stuff in my server
#1

hey, how can I put RC things in my server, like the RC Baron ??
Reply
#2

You add them with AddStaticVehicle, like a normal car.
Reply
#3

or CreateVehicle
Reply
#4

but how do I drive it ?
Reply
#5

Like a normal car?
Reply
#6

You press enter and you drive it like a normal car.
Reply
#7

this could be a starting point...
Код:
CMD:rcbaron(playerid,cmdtext[])
{
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid,X,Y,Z);
	new RedBaron=CreateVehicle(464,X,Y,Z,0,0,0,30000);
	PutPlayerInVehicle(playerid,RedBaron,0);
	return 1;
}
Reply
#8

Quote:
Originally Posted by Babul
Посмотреть сообщение
this could be a starting point...
Код:
CMD:rcbaron(playerid,cmdtext[])
{
	new Float:X,Float:Y,Float:Z;
	GetPlayerPos(playerid,X,Y,Z);
	new RedBaron=CreateVehicle(464,X,Y,Z,0,0,0,30000);
	PutPlayerInVehicle(playerid,RedBaron,0);
	return 1;
}
Remember to not create variable for vehicles INSIDE any function, command or callback, otherwise they would be local variables and it wouldn't be possible to use them globally.

So:
pawn Код:
new RedBaron;
CMD:rcbaron(playerid,cmdtext[])
{
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid,X,Y,Z);
    RedBaron=CreateVehicle(464,X,Y,Z,0,0,0,30000);
    PutPlayerInVehicle(playerid,RedBaron,0);
    return 1;
}
Reply
#9

lol, I know how to do it now, somehow I tried and it didn't work, but now is ok, thx for the help
Reply
#10

This might help you as well, good sir: https://sampforum.blast.hk/showthread.php?tid=158074
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)