10.07.2011, 18:46
hello, i'm making a system like HotPrusit. just about, spikes
now i have this problem, that i can't find how to do the object before the vehicle. when i tried, its only at the bottem, at the side, or in the middle. but i want it behind the vehicle, here is the code :
i tried this :
please help how i can put it behind the vehicle.. thanks to all who help me :)
now i have this problem, that i can't find how to do the object before the vehicle. when i tried, its only at the bottem, at the side, or in the middle. but i want it behind the vehicle, here is the code :
Quote:
new Float:plocx,Float:plocy,Float:plocz,Float:ploca; GetPlayerPos(playerid, plocx, plocy, plocz); GetPlayerFacingAngle(playerid,ploca); CreateStrip(plocx,plocy,plocz,ploca); format(string,sizeof(string),"[HQ]: Officer %s has placed a Spikestrip(1) at his position, over.",sendername); SendRadioMessage(1,COLOR_BLUE,string); format(string, sizeof(string), "* %s pushes a button on his police vehicle conrtol plate", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5); format(string, sizeof(string), "* some spike strips fall from the back (%s) ", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5); GameTextForPlayer(playerid,"~w~Spikestrip ~b~Placed!",3000,1); |
Quote:
CreateStrip(plocx-9.9,plocy,plocz,ploca); CreateStrip(plocx,plocy-9.9,plocz,ploca); CreateStrip(plocx,plocy,plocz-9.9,ploca); CreateStrip(plocx,plocy,plocz,ploca-9.9); //The "-9.9" is for the testing. |