[Ajuda] ajuda /jetpack
#1

Queria que o Jetpack dos Sуcios desaparecesi quando eles apertarem "F" pra sair do Mesmo.

Код:
if(strcmp(cmdtext, "/jetpack", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pJailed] != 0)
    	    {
	   			SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode pegar seu jetpack na cadeia");
	   			return 1;
    	    }
    	    if(PlayerPaintballing[playerid] != 0)
    		{
	   			SendClientMessage(playerid,COLOR_GREY," Vocк nгo pode usar seu jet no evento!");
	   			return 1;
    		}
            if(PlayerInfo[playerid][pSocio] == 1)
            {
                    if(IsPlayerInAnyVehicle(playerid)) return  SendClientMessage(playerid, COLOR_WHITE, "Vocк Nгo Pode Usar /jetpack em Um Veiculo !");
                    SetPlayerSpecialAction(playerid, 2);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "Sуcio %s Pegou seu JetPack", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    return 1;
            }
        }
        return 1;
    }
Reply
#2

Tenta ai na public OnPlayerKeyStateChange
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
}
}
Reply
#3

Vou testar, vc tem SKP felipe?
Reply
#4

deu nao felipe.
Reply
#5

pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK){ return OnPlayerCommandText(playerid,"/jetpack"); }
Reply
#6

Quote:
Originally Posted by Coreia
Посмотреть сообщение
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK){ return OnPlayerCommandText(playerid,"/jetpack"); }
onde eu coloco isso?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)