[AJUDA] Sistema de Jetpack
#1

Sou novo na бrea, preciso de um cуdigo para admins exemplo :

/darjetpack ai guardar em .ini pra todas as vezes que ele logar carregar, e o meu Ant-Cheat nгo banir ...
Reply
#2

Seu poblema ae https://sampforum.blast.hk/showthread.php?tid=295120, nem uso search tava na terceira pagina.
Reply
#3

http://forum.sa-mp.com/search.php
Reply
#4

Seja feliz
Reply
#5

Facil:



pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/jetpack", true) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            new Float:X,Float:Y,Float:Z;
            GetPlayerPos(playerid,X,Y,Z);
            CreatePickup(370,3,X,Y,Z);
            SendClientMessage(playerid,0x80FF00AA,"| INFO | Vocк criou um JetPack.");
            PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
            return 1;
        }
    }

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_SECONDARY_ATTACK)
    {
        if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
        {
            SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)