Small help
#2

pawn Код:
CMD:perk(playerid, params[])
{
    new drugs = randomEx(1,10);
        new string[128];
    if(PlayerInfo[playerid][pPerk] == dB)
    {

        format(string, sizeof(string), "You received %d drugs", drugs);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        PlayerInfo[playerid][pWeed] += drugs;
        return 1;
    }
        else{
    format(string, sizeof(string), "You dont have Db.");
    SendClientMessage(playerid, COLOR_YELLOW, string);
       }

    return 1;
}
Reply


Messages In This Thread
Small help - by Squirrel - 23.03.2013, 01:34
Re: Small help - by faff - 23.03.2013, 01:37
Re: Small help - by Squirrel - 23.03.2013, 01:42

Forum Jump:


Users browsing this thread: 1 Guest(s)