[AJUDA] Sistema de Jetpack
#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


Messages In This Thread
[AJUDA] Sistema de Jetpack - by isli27 - 25.11.2011, 00:45
Re: [AJUDA] Sistema de Jetpack - by Leo_Lost - 25.11.2011, 01:01
AW: [AJUDA] Sistema de Jetpack - by .CrazZy._.[De] - 25.11.2011, 01:36
Re: [AJUDA] Sistema de Jetpack - by _Jizzy_ - 25.11.2011, 02:10
Re: [AJUDA] Sistema de Jetpack - by |_MeGaTroN_| - 25.11.2011, 10:34

Forum Jump:


Users browsing this thread: 2 Guest(s)