CreateVehicle with 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CreateVehicle with command? (
/showthread.php?tid=185889)
CreateVehicle with command? -
<Weponz> - 26.10.2010
Ive searched wiki for like a hour now...Its not cutting out for this one,How can i make a command like /heli and spawns a heli infront of player??
Any help?
Thanks
Re: CreateVehicle with command? -
iJumbo - 26.10.2010
sure XD wait im making the script
EDIT:
pawn Код:
new Float:x;new Float:y;new Float:z;
GetPlayerPos(playerid, x, y, z);
CreateVehicle(modelid, x+3, y+1, z, 900.00, -1, -1, -1);
is simple xD
Quote:
Edit: mwahaha posted script before gigi as I wrote it instandly at the same time when he wrote that he will make a code
|
-___- post at same time
Re: CreateVehicle with command? -
Sascha - 26.10.2010
At OnPlayerCommandText :
Код:
if(strcmp("/heli", cmdtext, true, 5) == 0){
new Float:x, Float:y, Float:z, Float:az;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, az);
CreateVehicle(487, x+5, y+5, z, az, -1, -1, 180);
return 1;
}
Edit: mwahaha posted script before gigi as I wrote it instandly at the same time when he wrote that he will make a code
Re: CreateVehicle with command? -
<Weponz> - 26.10.2010
Thanks Peoples!