04.06.2015, 07:26
here is it
Quote:
format(string, sizeof(string), "* You offered %s to buy a %s.", GetPlayerNameEx(giveplayerid), x_weapon); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Nguoi che tao sung %s muon ban cho ban mot %s, (go /chapnhan gun) de mua.", GetPlayerNameEx(playerid), x_weapon); SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string); GunOffer[giveplayerid] = playerid; GunStorageID[giveplayerid] = storageid; GunId[giveplayerid] = weapon; GunMats[giveplayerid] = price; SetPVarInt(giveplayerid, "WeaponSeller_SQLId", GetPlayerSQLId(playerid)); if(PlayerInfo[playerid][pAdmin] < 3) { SetPVarInt(playerid, "ArmsTimer", 10); SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_ARMSTIMER); } } else { SendClientMessageEx(playerid, COLOR_GREY, "Nguoi choi do khong o gan ban."); } else { PlayerInfo[playerid][pMats] -= price; SendClientMessageEx(playerid, COLOR_YELLOW, "* Ban da that bai trong viec che tao sung ."); } return 1; } |