RC stuff in my server - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: RC stuff in my server (
/showthread.php?tid=186600)
RC stuff in my server -
marinov - 29.10.2010
hey, how can I put RC things in my server, like the RC Baron ??
Re: RC stuff in my server -
The_Moddler - 29.10.2010
You add them with AddStaticVehicle, like a normal car.
Re: RC stuff in my server -
Mr.Jvxmc - 29.10.2010
or CreateVehicle
Re: RC stuff in my server -
marinov - 29.10.2010
but how do I drive it ?
Re: RC stuff in my server -
Kyle - 30.10.2010
Like a normal car?
Re: RC stuff in my server -
The_Moddler - 30.10.2010
You press enter and you drive it like a normal car.
Re: RC stuff in my server -
Babul - 30.10.2010
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;
}
Re: RC stuff in my server -
Miguel - 30.10.2010
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;
}
Re: RC stuff in my server -
marinov - 30.10.2010
lol, I know how to do it now, somehow I tried and it didn't work, but now is ok, thx for the help
Re: RC stuff in my server -
Hiddos - 30.10.2010
This might help you as well, good sir:
https://sampforum.blast.hk/showthread.php?tid=158074