11.11.2012, 16:32
Hello guys , i am using Reavens RolePlay gamemode but i have a question ..
I wanna make this code here :
To be used only by police and to make it like
and to make it with player id , example
..
rep plus
I wanna make this code here :
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cuffed", cmdtext, true, 7) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
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;
}
if (strcmp("/uncuff", cmdtext, true, 7) == 0)
{
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
}
return 1;
}
return 0;
}
Код:
if(IsPlayerInRangeOfPoint) // if player is in range of terrorist or how i can be
Код:
/cuff [playerid]
rep plus