Jump to content
  • 0

Gm


Iulian2

Question

1 answer to this question

Recommended Posts

  • 0

Uite ceva mai nou,jucatorului o sa ii apara pe ecran acest scris,pentru acest frumos sistem ai nevoie sa descarci arhivul si sa instalezi totul,functia acestui sistem mai departe introduci tu.

CMD:bonus(playerid)
{
    static const str[] = "Buna, %s.\n{ffd200}Pentru a primi bonusul scrie /bonus";
    new
        user[MAX_PLAYER_NAME],
        string[sizeof(str)+MAX_PLAYER_NAME+10];

    GetPlayerName(playerid, user, sizeof(user));
    format(string,sizeof(string), str,user);
    infoplayer(playerid, string);
    return 1;
} 
forward infoplayer(playerid, const text_[]);
public infoplayer(playerid,const text_[])
{

    if (GetPVarInt(playerid, #text)) {
        DestroyDynamicObject(GetPVarInt(playerid, #object_air));
        KillTimer(GetPVarInt(playerid,#timer_air));
        DeletePVar(playerid, #text);
    }
    else {
        SetPVarInt(playerid, #object_air, CreateDynamicObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1, -1, playerid, 30.0));
        SetDynamicObjectMaterialText(GetPVarInt(playerid, #object_air), 0, text_, 130, "Calibri", 24, 1, -1, 0, 1);
        AttachDynamicObjectToPlayer(GetPVarInt(playerid, #object_air),playerid, -1.206207, -0.181491, 0.820003, 0.000000, 0.899999, -79.600036);
        SetPVarInt(playerid, #text, 1);
        SetPVarInt(playerid,#timer_air, SetTimerEx("infoplayer",10000,false,"i",playerid));
    }
} 

 

YSF-R20-RC4.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.