Command to buy a item
#1

pawn Код:
if(strcmp(cmd, "/wschein", true) == 0)
    {
        if (!PlayerToPoint(3.0, playerid,249.4883,67.6739,1003.6406)) return SendClientMessage(playerid,COLOR_CRVENA,"[ERROR]:You cannot buy the weapon license here");
        if(PlayerInfo[playerid][pGunLic] == 1) return SendClientMessage(playerid,COLOR_CRVENA,"[ERROR]:You already have a weapon license");
        SendClientMessage(playerid,COLOR_INFO, "[INFO]:Waffenschein gekauft.");
        PlayerInfo[giveplayerid][pGunLic] = 1;
        GivePlayerCash(playerid, - 4000);
        return true;
    }
People can still use /wschein to buy a license, even if they got one, does anyone see whats wrong here?
Reply


Messages In This Thread
Command to buy a item - by Dripac - 16.03.2012, 15:31
Re: Command to buy a item - by [KHK]Khalid - 16.03.2012, 15:41
Re: Command to buy a item - by Dripac - 16.03.2012, 15:43
Re: Command to buy a item - by [KHK]Khalid - 16.03.2012, 15:45
Re: Command to buy a item - by Jonny5 - 16.03.2012, 15:46
Re: Command to buy a item - by [KHK]Khalid - 16.03.2012, 15:48
Re: Command to buy a item - by Jonny5 - 16.03.2012, 15:52
Re: Command to buy a item - by Dripac - 16.03.2012, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)