CreateVehicle with command?
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

Thanks Peoples!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)