attaching Objects - 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)
+--- Thread: attaching Objects (
/showthread.php?tid=450777)
attaching Objects -
Salsa - 14.07.2013
i have made some vehicle attaching objects
but those objects attaching to other cars too automatically O.o
possible to help me ? is anything wrong in my cmd ? see
Код:
if (strcmp(cmdtext, "/turttle", true) == 0){
new iamturttle = CreateObject(1609,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(iamturttle, GetPlayerVehicleID(playerid), -0.075000,0.000000,0.824999,0.000000,0.000000,0.000000);
return 1;}
Re: attaching Objects -
AdamCooper - 14.07.2013
pawn Код:
if (strcmp(cmdtext, "/turttle", true) == 0){
new carid = GetPlayerVehicleID(playerid);
SetPVarInt(playerid, "turtlle",CreateObject(1220,0,0,0,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "turtlle"), carid, -0.004999, 0.544999, 0.264999, 0.000000, 0.000000, 0.000000);
return 1;}
Re: attaching Objects -
Salsa - 15.07.2013
can you tell me what is the problem ?