replace tazer
#3

Quote:
Originally Posted by rBcollo
Посмотреть сообщение
Try this code:

pawn Код:
CMD:tazer(playerid, params[])
{
    if(tazer[playerid] == 0)
    {
        GivePlayerValidWeapon(playerid, 23, 9999);
        tazer[playerid] = 1;
        new string[56];
        format(string, sizeof(string), "* %s unholsters his tazer.", GetPlayerNameEx(playerid));
        ProxDetector(30.0, playerid, string, COLOR_PURPLE);
        return 1;
    }
    if(tazer[playerid] == 1)
    {
        tazer[playerid] = 0;
        new string[56];
        GivePlayerValidWeapon(playerid, 22, 6000);
        format(string, sizeof(string), "* %s holsters his tazer. ", GetPlayerNameEx(playerid));
        ProxDetector(30.0, playerid, string, COLOR_PURPLE);
        return 1;
    }
    return 1;
}
This wont help at all, because 22 is Colt 45, and it'd suck if I replace my Deagle with a tazer and get a colt 45 in return when you holster it. All I am askin is what is wrong with my code.
Reply


Messages In This Thread
replace tazer - by Why - 03.09.2012, 18:08
Re: replace tazer - by rBcollo - 03.09.2012, 19:00
Re: replace tazer - by Why - 03.09.2012, 20:08
Re: replace tazer - by Why - 03.09.2012, 22:25

Forum Jump:


Users browsing this thread: 1 Guest(s)