The aim and shift shake hands raise the targeted
#1

I saw here in the forum mt time and trying to do ...
If I'm aiming for a guy and I shift shake the guy being automatically targeted the ta /handsup

I tried to do so, but I do qnd commands nothing happens:

pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{

// render jogador

    new targetplayer = GetPlayerTargetPlayer(playerid); // Store the ID
    if (PRESSED(KEY_JUMP) && PRESSED(KEY_SECONDARY_ATTACK )) {
        if(targetplayer != INVALID_PLAYER_ID){
            //SendClientMessage(playerid, COLOR_BLACKRED, "Vocк precisa de dois jogadores da mesma organizaзгo mirando para render uma vitima!");
            SendClientMessage(playerid, COLOR_BLACKRED, "<!> Jogador rendido!");
            SendClientMessage(targetplayer, COLOR_BLACKRED, "Vocк foi rendido por outro jogador");
            SendClientMessage(targetplayer, COLOR_BLACKRED, "Nгo reaja ao assalto/sequestro ou poderб ser punido por CK (50 horas preso) se morrer");
            SetPlayerSpecialAction(targetplayer,SPECIAL_ACTION_HANDSUP);
        }
    }
Reply
#2

any can help me?
Reply
#3

anyy?
Reply
#4

Try
pawn Код:
if(PRESSED(KEY_JUMP | KEY_SECONDARY_ATTACK))
Reply
#5

But then in this case would not change:
Aiming and tighten shift
for
Mirando or by pressing shift

I wanted it to work when the player was aiming, and tightens up the shift

Nobody knows why it is not working?
Reply
#6

jefff? ANYYYYYYYYYYYY!?
Reply
#7

I don't understand what you want to do. When you press shift, he does what? Automatically does "/handsup"?
Reply
#8

pawn Код:
if(PRESSED(KEY_HANDBRAKE | KEY_SPRINT))
    {
        new targetplayer = GetPlayerTargetPlayer(playerid); // Store the ID
        if(targetplayer != INVALID_PLAYER_ID)
        {
            //SendClientMessage(playerid, COLOR_BLACKRED, "Voce^ precisa de dois jogadores da mesma organizaзa~o mirando para render uma vitima!");
            SendClientMessage(playerid, COLOR_BLACKRED, "<!> Jogador rendido!");
            SendClientMessage(targetplayer, COLOR_BLACKRED, "Voce^ foi rendido por outro jogador");
            SendClientMessage(targetplayer, COLOR_BLACKRED, "Na~o reaja ao assalto/sequestro ou poderб ser punido por CK (50 horas preso) se morrer");
            SetPlayerSpecialAction(targetplayer,SPECIAL_ACTION_HANDSUP);
        }
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)