03.05.2010, 12:17
i know there are lots of existing FS out there tht do this but im learning so i have this
so if someone would be so kind as to tell me how the fook to put the player in the vehicle that was spawned i b most greatfull thanks.
ps. im not being lazy iv tryed a few things none work
Code:
CMD:spawn(playerid, params[]) { new idx; new cid; new tmp[256]; new Float:x, Float:y, Float:z; GetPlayerPos(Pid,x,y,z); tmp = strtok(params, idx); if(isnull(params)) { SendClientMessage(Pid, 0x00ff00FF, "usage /spawn [vehicleid]"); return 1; } else { new Float:Xv; Xv = x -5.0; cid = strval(tmp); AddStaticVehicleEx(cid,Xv,y,z,180.0,-1,-1,0); return 1; } }
ps. im not being lazy iv tryed a few things none work
![Cry](images/smilies/cry.gif)