SA-MP Forums Archive
Need help with SetPlayerHoldingObject. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with SetPlayerHoldingObject. (/showthread.php?tid=188494)



Need help with SetPlayerHoldingObject. - [P4] - 07.11.2010

Ok so, i'm trying to make /command that spawns a flag on your head.
So here it is:
Код:
if(strcmp(cmdtext, "/flag", true) == 0)
{
SetPlayerHoldingObject( playerid, 2914, 1, 0.594623, 0.000000, 0.000000, 159.096176, 97.400627, 104.837265 );
}
But it doesn't work at all.No errors or nothing, and when i type it in game nothing, even "Uknown Cmd" message.I need help with that.

Thanks


Re: Need help with SetPlayerHoldingObject. - WillyP - 07.11.2010

Seriously?

Another noob using [PHP] tags.. Anyway:

pawn Код:
if(strcmp(cmdtext, "/flag", true) == 0)
{
    SetPlayerHoldingObject( playerid, 2914, 1, 0.594623, 0.000000, 0.000000, 159.096176, 97.400627, 104.837265 );
    return 1;
}



Re: Need help with SetPlayerHoldingObject. - [P4] - 07.11.2010

Okay happy now? Anyway Thanks.And i'm not noob, so stop insulting me.Just a beginner.
Anyway is it possible to work while in vehicle?When on foot it works but not when in vehicle.


Re: Need help with SetPlayerHoldingObject. - Scott - 07.11.2010

Quote:
Originally Posted by -/!\-
Посмотреть сообщение
Okay happy now? Anyway Thanks.And i'm not noob, so stop insulting me.Just a beginner.
Anyway is it possible to work while in vehicle?When on foot it works but not when in vehicle.
No that is not possible.

Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 74 seconds.