[HELP] /sellgun with dcmd
#5

Not the best way to do it but it will show you how you could have done it
pawn Код:
dcmd_sellgun( playerid, params[] )
{
    new otherid, wepname[50];
    new string[64], PlayerName[24];
    new number;
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    format(string, sizeof(string),"xadmin/Users/%s.ini", udb_encode(PlayerName));
    number = dini_Int(string, "Job");
    if(number != 6) return SendClientMessage(playerid, CHAT_COLOR_RED, "You are not an Arms Dealer!");
    else if(sscanf(params, "us", otherid, wepname)) return SendClientMessage(playerid, CHAT_COLOR_RED, "Use: Blah!");
    else if(otherid == INVALID_PLAYER_ID) return SendClientMessage(playerid, CHAT_COLOR_RED, "Invalid Player ID!");
    else
    {
        SendClientMessage(playerid, CHAT_COLOR_RED, "Works");
        SendClientMessage(playerid, CHAT_COLOR_RED, "Yeey :D");
    }
    return 1;
}
Reply


Messages In This Thread
[SOLVED] /sellgun with dcmd - by Haegon - 26.11.2010, 22:12
Re: [HELP] /sellgun with dcmd - by Faraday - 26.11.2010, 22:31
Re: [HELP] /sellgun with dcmd - by Haegon - 26.11.2010, 23:30
Re: [HELP] /sellgun with dcmd - by Haegon - 27.11.2010, 00:08
Re: [HELP] /sellgun with dcmd - by Fj0rtizFredde - 27.11.2010, 00:32
Re: [HELP] /sellgun with dcmd - by Haegon - 27.11.2010, 01:36
Re: [HELP] /sellgun with dcmd - by Haegon - 28.11.2010, 21:03
Re: [HELP] /sellgun with dcmd - by Fj0rtizFredde - 28.11.2010, 22:17
Re: [HELP] /sellgun with dcmd - by Haegon - 28.11.2010, 22:36
Re: [HELP] /sellgun with dcmd - by Richard Steinheimer - 12.08.2012, 03:06

Forum Jump:


Users browsing this thread: 1 Guest(s)