Reavens help
#1

Hello guys , i am using Reavens RolePlay gamemode but i have a question ..

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;
}
To be used only by police and to make it like
Код:
 if(IsPlayerInRangeOfPoint) // if player is in range of terrorist or how i can be
and to make it with player id , example

Код:
 /cuff [playerid]
..

rep plus
Reply
#2

So what do you really need? I don't understand what your question is, and it's Ravens Roleplay.
Reply
#3

I want that this command get used only by POLICE CLASS and ONLY if police is in range of the Terrorist !
Reply
#4

As in Like When Police is Arresting someone they need to cuff them but Private200 Ravens Already Have a cuff system we just need to remove the /handsup 1 before they can be cuffed
Reply
#5

Quote:
Originally Posted by Private200
Посмотреть сообщение
I want that this command get used only by POLICE CLASS and ONLY if police is in range of the Terrorist !
You must edit that in your gamemode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)