Error with command
#7

take this

pawn Код:
#include <zcmd>
#include <a_samp>

new bool:Milestones[MAX_PLAYERS];

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("Milestone Sistema");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

main()
{
    print("\n----------------------------------");
    print("Milestone Sistema");
    print("----------------------------------\n");
}


stock givescore(playerid, ammount)
{
    new currentscore;
    currentscore = GetPlayerScore(playerid);
    SetPlayerScore(playerid, GetPlayerScore(playerid)+ammount);
}

public OnPlayerConnect(playerid)
{
    Milestones[playerid] = false;
    return 1;
}

CMD:milestone1(playerid, params[])
{
    if(GetPlayerMoney(playerid) >= 10000)
    {
        givescore(playerid, 10);
        if(Milestones[playerid]) return SendClientMessage(playerid, -1, "Tu jau atsiemлi рб milestone.");
    }
    return 1;
}
Reply


Messages In This Thread
Error with command - by VirtasVarsketis - 21.09.2015, 11:59
Re: Error with command - by IceBilizard - 21.09.2015, 12:22
Re: Error with command - by VirtasVarsketis - 21.09.2015, 12:29
Re: Error with command - by saffierr - 21.09.2015, 12:30
Re: Error with command - by IceBilizard - 21.09.2015, 12:36
Re: Error with command - by VirtasVarsketis - 21.09.2015, 12:37
Re: Error with command - by IceBilizard - 21.09.2015, 12:40
Re: Error with command - by VirtasVarsketis - 21.09.2015, 12:41
Re: Error with command - by IceBilizard - 21.09.2015, 12:47
Re: Error with command - by VirtasVarsketis - 21.09.2015, 12:50

Forum Jump:


Users browsing this thread: 3 Guest(s)