Need help with SetPlayerHoldingObject.
#1

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
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

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.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)