- 0
Nu imi apare textul
-
Similar Content
-
- 0 answers
- 79 views
-
am un crash care ma bantuie de ceva timp, am jucat vreo cativa ani pe mai multe laptopuri/pc-uri si n am avut treaba asta niciodata, a aparut peste noapte
By reje,
- 1 answer
- 619 views
-
- 3 answers
- 1.671 views
-
ajutor conectare data de baze in gamemode ca nustiu care pun ca le pun pe amandoua si numi merge va las jos sa imi spuneti care ip trebuie
By pericz,
- 8 answers
- 2.207 views
-
- 4 replies
- 973 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
official
Problema intalnita (descriere):Am pus la /order cand dai sa nu poti lua daca nu ai licenta gun, dar cand dau si nu am licenta gun nu imi apare textul "Ai nevoie de o licenta gun.."
Ero(area / rile) / warning-(ul / urile):
CMD:order(playerid, params[]) { new group = playerVariables[playerid][pGroup]; if(playerVariables[playerid][pGunLicense] != 0) if(groupVariables[group][gGroupType] == 0) { if((IsPlayerInRangeOfPoint(playerid, 100.000, groupVariables[group][gGroupInteriorPos][0], groupVariables[group][gGroupInteriorPos][1], groupVariables[group][gGroupInteriorPos][2])) && GetPlayerVirtualWorld(playerid) == GROUP_VIRTUAL_WORLD+group) { if(isnull(params)) { SCM(playerid, COLOR_GREY, "---------------->Gang Order<----------------"); SCM(playerid, COLOR_GREY, "/order 1 - Deagle;"); SCM(playerid, COLOR_GREY, "/order 2 - Shotgun;"); SCM(playerid, COLOR_GREY, "/order 3 - M4A1;"); SCM(playerid, COLOR_GREY, "/order 4 - AK47;"); SCM(playerid, COLOR_GREY, "/order 5 - MP5;"); SCM(playerid, COLOR_GREY, "/order 6 - Rifle;"); SCM(playerid, COLOR_GREY, "/order 7 - Katana."); } else { if(strcmp(params, "1", true) == 0) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 200) { if(playerVariables[playerid][pMoney] >= 1000) { playerVariables[playerid][pWeapons][2] = 24; GivePlayerWeapon(playerid, 24, 200); playerVariables[playerid][pMoney] -= 1000; SCM(playerid, COLOR_GREY, "You have bought a Desert Eagle for $1000. 200 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 1000; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 200; } else { SCM(playerid, -1, "You don't have enough money to purchase this!"); } } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else if(strcmp(params, "2", true) == 0) { if(playerVariables[playerid][pMoney] >= 500) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 150) { playerVariables[playerid][pWeapons][3] = 25; GivePlayerWeapon(playerid, 25, 200); playerVariables[playerid][pMoney] -= 500; SCM(playerid, COLOR_GREY, "You have bought a Shotgun for $500. 150 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 500; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 150; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } else if(strcmp(params, "3", true) == 0) { if(playerVariables[playerid][pMoney] >= 2000) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 300) { playerVariables[playerid][pWeapons][5] = 31; GivePlayerWeapon(playerid, 31, 300); playerVariables[playerid][pMoney] -= 2000; SCM(playerid, COLOR_GREY, "You have bought a M4A1 for $2000. 300 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 2000; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 300; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } else if(strcmp(params, "4", true) == 0) { if(playerVariables[playerid][pMoney] >= 2000) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 300) { playerVariables[playerid][pWeapons][5] = 30; GivePlayerWeapon(playerid, 30, 300); playerVariables[playerid][pMoney] -= 2000; SCM(playerid, COLOR_GREY, "You have bought an AK47 for $2000. 300 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 2000; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 300; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } else if(strcmp(params, "5", true) == 0) { if(playerVariables[playerid][pMoney] >= 2000) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 150) { playerVariables[playerid][pWeapons][4] = 29; GivePlayerWeapon(playerid, 29, 300); playerVariables[playerid][pMoney] -= 750; SCM(playerid, COLOR_GREY, "You have bought an MP5 for $750. 150 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 750; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 150; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } else if(strcmp(params, "6", true) == 0) { if(playerVariables[playerid][pMoney] >= 1500) { if(playerVariables[playerid][pGroupRank] >= 4) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 400) { playerVariables[playerid][pWeapons][6] = 33; GivePlayerWeapon(playerid,33, 100); playerVariables[playerid][pMoney] -= 1500; SCM(playerid, COLOR_GREY, "You have bought a Rifle for $1500. 400 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 1500; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 400; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have the necessary rank to do this! You need rank 4."); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } else if(strcmp(params, "7", true) == 0) { if(playerVariables[playerid][pMoney] >= 500) { if(playerVariables[playerid][pGroupRank] >= 5) { if(groupVariables[playerVariables[playerid][pGroup]][gSafe][1] >= 100) { givePlayerValidWeapon(playerid, 8); playerVariables[playerid][pMoney] -= 500; SCM(playerid, COLOR_GREY, "You have bought a Katana for $500. 100 materials were taken from the group safe."); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] += 500; groupVariables[playerVariables[playerid][pGroup]][gSafe][1] -= 100; } else { SCM(playerid, COLOR_GREY, "Not enough materials in the group safe!"); } } else { SCM(playerid, COLOR_GREY, "You don't have the necessary rank to do this! You need rank 4."); } } else { SCM(playerid, COLOR_GREY, "You don't have enough money to purchase this!"); } } } } } ResetPlayerMoney(playerid); GivePlayerMoney(playerid, playerVariables[playerid][pMoney]); return 1; }Liniile de cod / sursa / script-ul(obligatoriu): -
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Nustiu ce sa ii fac..
3 answers to this question
Recommended Posts