[Help] Ammunation Problem
#2

LOL alot of {{{{{{ hehe


pawn Код:
if(strcmp("/buygun", cmdtext, true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,5.0,308.0848,-141.4177,999.6016))
        {
             SendClientMessage(playerid, BLUE, "------Ammunation------");
             SendClientMessage(playerid, WHITE, "Deagle - $2500");
             SendClientMessage(playerid, WHITE, "Shotgun - $1500");
             SendClientMessage(playerid, WHITE, "Colt45 - $1000");
             SendClientMessage(playerid, BLUE, "--Legalized Gun Shop--");
        }
        new idx;
        new cmd[128];
        cmd = strtok(cmdtext, idx);
        if(strcmp(cmd,"Deagle"))
        {
            GetPlayerMoney(playerid);
            GivePlayerMoney(playerid,-2500);
            GivePlayerWeapon(playerid, 24, 10);
        }
        else if(strcmp(cmd,"Shotgun"))
        {
            GetPlayerMoney(playerid);
            GivePlayerMoney(playerid,-1500);
            GivePlayerWeapon(playerid, 25, 15);
        }
        else if(strcmp(cmd,"Colt45"))
        {
            GetPlayerMoney(playerid);
            GivePlayerMoney(playerid,-1000);
            GivePlayerWeapon(playerid, 22, 50);
        }
    }
oops bad command it buy u a gun not let you select Haa got robbed 2500 for a deagle.. Hold on ill fixer her up right..
Reply


Messages In This Thread
[Help] Ammunation Problem - by XoSarahMoX - 21.11.2010, 22:18
Re: [Help] Ammunation Problem - by Buzzbomb - 21.11.2010, 22:47
Re: [Help] Ammunation Problem - by XoSarahMoX - 22.11.2010, 21:06
Re: [Help] Ammunation Problem - by XoSarahMoX - 24.11.2010, 03:19

Forum Jump:


Users browsing this thread: 2 Guest(s)