SA-MP Forums Archive
Phone in hands. - 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: Phone in hands. (/showthread.php?tid=420044)



Phone in hands. - audriuxxx - 03.03.2013

Hi, how create phone in hands?


Re: Phone in hands. - Mean - 03.03.2013

pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);



Re: Phone in hands. - audriuxxx - 03.03.2013

But i don't get phone in hands, just animation.


Re: Phone in hands. - Jstylezzz - 03.03.2013

pawn Код:
SetPlayerAttachedObject(playerid, 1, 330 , 6);//gives the phone in the hand
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);//does the animation
This will give you the animation and the phone in your hand.


Re: Phone in hands. - PabloDiCostanzo - 03.03.2013

ALL ANIMATIONS

ALL OBJECTS


Re: Phone in hands. - AIped - 03.03.2013

pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE
);
pawn Код:
SetPlayerAttachedObject( playerid, 0, 330, 6, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // cellphone - originalphone

SetPlayerAttachedObject( playerid, 0, 18865, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone1 - phone1

SetPlayerAttachedObject( playerid, 0, 18866, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone2 - phone2

SetPlayerAttachedObject( playerid, 0, 18867, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone3 - phone3

SetPlayerAttachedObject( playerid, 0, 18868, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone4 - phone4

SetPlayerAttachedObject( playerid, 0, 18869, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone5 - phone5

SetPlayerAttachedObject( playerid, 0, 18870, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone6 - phone6

SetPlayerAttachedObject( playerid, 0, 18871, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone7 - phone7

SetPlayerAttachedObject( playerid, 0, 18872, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone8 - phone8

SetPlayerAttachedObject( playerid, 0, 18873, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone9 - phone9

SetPlayerAttachedObject( playerid, 0, 18874, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone10 - phone10

SetPlayerAttachedObject( playerid, 0, 2966, 6, 0.074420, 0.070006, -0.073053, 95.891288, 182.216491, 0.000000, 1.000000, 1.000000, 1.000000 ); // mobile1993b - phoneb

SetPlayerAttachedObject( playerid, 0, 2967, 6, 0.083958, 0.028343, 0.012803, 93.644790, 180.129531, 355.237335, 1.000000, 1.000000, 1.000000 ); // mobile1993a - phonebla