[Pedido] Handsup
#5

PHP Code:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
   
/* playerid = mirou
    targetplayer = vitima*/
    
    
new Keys,ud,lr;
    new 
targetplayer GetPlayerTargetPlayer(playerid); 
    if (
oldkeys KEY_JUMP) && (newkeys KEY_HANDBRAKE)
    {
        for (new 
0MAX_PLAYERSi++)
        {
                 
GetPlayerKeys(iKeysudlr);
                 
                 if(
Keys == KEY_JUMPSetPlayerSpecialAction(targetplayerSPECIAL_ACTION_HANDSUP);
    
                 
SendClientMessage(playeridCOLOR_BLACKRED"<!> Jogador rendido!");
                 
SendClientMessage(targetplayerCOLOR_BLACKRED"Vocк foi rendido por outro jogador");
                 
SendClientMessage(targetplayerCOLOR_BLACKRED"Nгo reaja ao assalto/sequestro ou poderб ser punido por CK (50 horas preso) se morrer");
                 
        }
        
//SendClientMessage(playerid, COLOR_BLACKRED, "Vocк precisa de dois jogadores mirando para render uma vitima!");
    
}

Correto?
Reply


Messages In This Thread
Handsup - by SukMathcuck - 29.03.2015, 18:37
Re: Handsup - by ViictorDaay- - 29.03.2015, 18:43
Re: Handsup - by SukMathcuck - 29.03.2015, 18:58
Re: Handsup - by ipsLuan - 29.03.2015, 19:23
Re: Handsup - by SukMathcuck - 29.03.2015, 19:35

Forum Jump:


Users browsing this thread: 2 Guest(s)