26.10.2010, 17:37
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
Any help?
Thanks
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);
Edit: mwahaha posted script before gigi as I wrote it instandly at the same time when he wrote that he will make a code |
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; }