SHOW:
|
|
- or go back to the newest paste.
| 1 | if(dialogid == magasin) | |
| 2 | {
| |
| 3 | if(response) | |
| 4 | {
| |
| 5 | if(listitem == 0) | |
| 6 | {
| |
| 7 | if(PlayerInfo[playerid][pTraderPerk] > 0) | |
| 8 | {
| |
| 9 | new skill = 150 / 100; | |
| 10 | new price = (skill)*(PlayerInfo[playerid][pTraderPerk]); | |
| 11 | new payout = 150 - price; | |
| 12 | format(string, sizeof(string), "~r~-$%d", payout); | |
| 13 | GameTextForPlayer(playerid, string, 5000, 1); | |
| 14 | SafeGivePlayerMoney(playerid,- payout); | |
| 15 | SBizzInfo[9][sbTill] += payout; | |
| 16 | ExtortionSBiz(9, payout); | |
| 17 | } | |
| 18 | else | |
| 19 | {
| |
| 20 | format(string, sizeof(string), "~r~-$%d", 150); | |
| 21 | GameTextForPlayer(playerid, string, 5000, 1); | |
| 22 | SafeGivePlayerMoney(playerid,-150); | |
| 23 | SBizzInfo[9][sbTill] += 150; | |
| 24 | ExtortionSBiz(9, 150); | |
| 25 | } | |
| 26 | ||
| 27 | PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); | |
| 28 | new randphone = 1000 + random(9999);//minimum 1000 max 9999 | |
| 29 | PlayerInfo[playerid][pPnumber] = randphone; | |
| 30 | format(string, sizeof(string), "Telephone acheté, votre numéro est le %d", randphone); | |
| 31 | SendClientMessage(playerid, COLOR_GRAD4, string); | |
| 32 | SendClientMessage(playerid, COLOR_GRAD5, "Vous pouvez le vérifier à tout moment en tappant /stats"); | |
| 33 | SendClientMessage(playerid, COLOR_WHITE, "Note: Vous pouvez utiliser /aide pour voir les commande du telephone."); | |
| 34 | ||
| 35 | } | |
| 36 | ||
| 37 | if(listitem == 1) | |
| 38 | {
| |
| 39 | SendClientMessage(playerid, COLOR_GREEN, "a voir apres"); | |
| 40 | } | |
| 41 | if(listitem == 2) | |
| 42 | {
| |
| 43 | SendClientMessage(playerid, COLOR_GREEN, "a voir apres"); | |
| 44 | } | |
| 45 | if(listitem == 3) | |
| 46 | {
| |
| 47 | SendClientMessage(playerid, COLOR_GREEN, "a voir apres"); | |
| 48 | } | |
| 49 | if(listitem == 4) | |
| 50 | {
| |
| 51 | SendClientMessage(playerid, COLOR_GREEN, "a voir apres"); | |
| 52 | } | |
| 53 | } // Il en manquait une ici | |
| 54 | } |