08.05.2014, 14:19
Yo Bro's
Theres nothing happen with this actions
Theres nothing happen with this actions
Код:
if(dialogid == DIALOG_FAM_TOKEN) { if(response) { switch(dialogid) { case 1: { switch(listitem) { case 0: { if(FamilyInfo[playerid][FamilyTurfTokens] >= 3) { GivePlayerValidWeapon(playerid, 26, 999999999); SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have buy sawn-off shotgun for 3 tokens!"); FamilyInfo[playerid][FamilyTurfTokens] -=3; } else return SendClientMessage(playerid, COLOR_GRAD1, "You dont have 3 token to buy that!"); } } } } } }
Код:
CMD:ftokenshop(playerid, params[]) { //if(PlayerInfo[playerid][pGang] > 0) //{ if(IsPlayerInRangeOfPoint(playerid, 2.0 ,-2235.1304, 130.1577, 1035.4141)) { ShowPlayerDialogEx(playerid, DIALOG_FAM_TOKEN, DIALOG_STYLE_LIST, "Philippines-Roleplay Family Token Shop", "Sawn-off shotgun(3 Token)\n Uzi(2 Token)\nSpas(4 Token)\n200 Armor(8 Token)\nRPG(Special 200 Token", "Select", "Cancel"); } else return SendClientMessage(playerid, COLOR_WHITE, "Your not range in Family Token Shop!"); return 1; //} //return SendClientMessage(playerid, COLOR_REALRED, "Your not in any gang!!!!!!!!!!"); }