Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == magasin)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pTraderPerk] > 0)
- {
- new skill = 150 / 100;
- new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
- new payout = 150 - price;
- format(string, sizeof(string), "~r~-$%d", payout);
- GameTextForPlayer(playerid, string, 5000, 1);
- SafeGivePlayerMoney(playerid,- payout);
- SBizzInfo[9][sbTill] += payout;
- ExtortionSBiz(9, payout);
- }
- else
- {
- format(string, sizeof(string), "~r~-$%d", 150);
- GameTextForPlayer(playerid, string, 5000, 1);
- SafeGivePlayerMoney(playerid,-150);
- SBizzInfo[9][sbTill] += 150;
- ExtortionSBiz(9, 150);
- }
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new randphone = 1000 + random(9999);//minimum 1000 max 9999
- PlayerInfo[playerid][pPnumber] = randphone;
- format(string, sizeof(string), "Telephone acheté, votre numéro est le %d", randphone);
- SendClientMessage(playerid, COLOR_GRAD4, string);
- SendClientMessage(playerid, COLOR_GRAD5, "Vous pouvez le vérifier à tout moment en tappant /stats");
- SendClientMessage(playerid, COLOR_WHITE, "Note: Vous pouvez utiliser /aide pour voir les commande du telephone.");
- }
- if(listitem == 1)
- {
- SendClientMessage(playerid, COLOR_GREEN, "a voir apres");
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, COLOR_GREEN, "a voir apres");
- }
- if(listitem == 3)
- {
- SendClientMessage(playerid, COLOR_GREEN, "a voir apres");
- }
- if(listitem == 4)
- {
- SendClientMessage(playerid, COLOR_GREEN, "a voir apres");
- }
- } // Il en manquait une ici
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement