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



Object:Phone - DJRebis - 04.07.2013

Hi, i made cmd for phone anim but how to get phone in player hand?
What need to chnage and what function?
Код:
	if (strcmp("/phoneon", cmdtext, true, 10) == 0)
	{
	    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
	    return 1;
	}
	if (strcmp("/phoneoff", cmdtext, true, 10) == 0)
	{
	    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_STOPUSECELLPHONE);
	    return 1;
	}



Re: Object:Phone - MP2 - 04.07.2013

SetPlayerAttachedObject.


Re: Object:Phone - DJRebis - 04.07.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
SetPlayerAttachedObject.
thank you!