Raven's Roleplay Spawn Car command??? - 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)
+--- Thread: Raven's Roleplay Spawn Car command??? (
/showthread.php?tid=511263)
Raven's Roleplay Spawn Car command??? -
NoahF - 04.05.2014
Does anyone know what the command to spawn a car is in Raven's RP? I have looked for like 30 mins and can't find it.
Any help is appreciated. Thanks!
Re: Raven's Roleplay Spawn Car command??? -
PrivatioBoni - 04.05.2014
Couldn't you ask on their GM thread?
Re: Raven's Roleplay Spawn Car command??? -
NoahF - 04.05.2014
That's true.. Just thought it would be faster to get a reply here.
Re: Raven's Roleplay Spawn Car command??? -
Abagail - 04.05.2014
If you can't find one then make your own!
pawn Код:
CMD:v(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 3) return 0;
new vid, col1, col2;
if(sscanf(params, "ddd", vid, col1, col2)) return SendClientMessage(playerid, -1, "USAGE: /v [ID/name] [color1] [color2]");
new vehicleid = GetVehicleNameFromID(vid);
new Float: X, Float: Y, Float: Z;
GetPlayerPos(playerid, X, Y, Z);
new Float: fangle;
GetPlayerFacingAngle(playerid, fangle);
CreateVehicle(vehicleid,X,Y,Z, fangle, col1, col2, -1);
SetPlayerPos(playerid,X,Y,Z+2);
return 1;
}
Re: Raven's Roleplay Spawn Car command??? -
NoahF - 04.05.2014
Yes, I was thinking about doing that but I kept looking. Thank you.