what's wrong with this command
#1

pawn Код:
CMD:givedrugs(playerid, params[])
{
    if(gTeam[playerid] == DRUG)
    {
        new id, drug[100], ammount;
        if(sscanf(params,"us[100]i",id,drug,ammount)) return SendClientMessage(playerid, -1, "USAGE: /givedrugs <id/name> <drugname> <grams>  - drug names: weed & heroin");
        if GetPlayerWeed(playerid) < ammount) return SendClientMessage(playerid, -1, "You do not have that much grams!");
        if(drug == weed) { GivePlayerWeed(id, ammount); }
        if(drug == heroin) { GivePlayerHeroin(id, ammount); }
        return 1;
    }
    else if(gTeam[playerid] != DRUG)
    {
        SendClientMessage(playerid, -1, "You are not a drug dealer");
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
what's wrong with this command - by thefatshizms - 22.07.2012, 08:58
Re: what's wrong with this command - by Kindred - 22.07.2012, 09:03
Re: what's wrong with this command - by thefatshizms - 22.07.2012, 09:05
Re: what's wrong with this command - by Kindred - 22.07.2012, 09:06
Re: what's wrong with this command - by Kaperstone - 22.07.2012, 09:08
Re: what's wrong with this command - by Rudy_ - 22.07.2012, 09:09
Re: what's wrong with this command - by thefatshizms - 22.07.2012, 09:15
Re: what's wrong with this command - by Kindred - 22.07.2012, 09:19
Re: what's wrong with this command - by Rudy_ - 22.07.2012, 09:22
Re: what's wrong with this command - by thefatshizms - 22.07.2012, 09:22

Forum Jump:


Users browsing this thread: 1 Guest(s)