18.02.2014, 16:18
I am aware of the new SPECIAL_ACTION_CUFFED, but could someone show me a way in which I can cuff another player, and freeze him? I have searched everywhere and cant find a way.
This is what I had: ((Yeh i'm new, and strcmp is all i know how to use.))
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cuff", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
return 1;
}
return 0;
}
So basically, how can I apply this to another player like: /cuff PLAYERID and /uncuff PLAYERID. An how might I freeze them so they can't move their camera or player whilst cuffed.
This is what I had: ((Yeh i'm new, and strcmp is all i know how to use.))
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cuff", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
return 1;
}
return 0;
}
So basically, how can I apply this to another player like: /cuff PLAYERID and /uncuff PLAYERID. An how might I freeze them so they can't move their camera or player whilst cuffed.