13.11.2012, 15:16
I need help with turning this :
if (strcmp("/cuff", cmdtext, true, 7) == 0)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x,y,z);
PlayerPlaySound(playerid, 5201, x,y,z);
SendClientMessage(playerid, 0xFF0000AA, "* You are now cuffed.");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
TogglePlayerControllable(playerid, 0); // Freeze
SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
return 1;
Into a command where I can type /cuff [playerid] and for it to work
Any help would be greatly usefull
if (strcmp("/cuff", cmdtext, true, 7) == 0)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x,y,z);
PlayerPlaySound(playerid, 5201, x,y,z);
SendClientMessage(playerid, 0xFF0000AA, "* You are now cuffed.");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
TogglePlayerControllable(playerid, 0); // Freeze
SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
return 1;
Into a command where I can type /cuff [playerid] and for it to work
Any help would be greatly usefull