Jump to content

Gamemode Expold sistem /creategun


MihaiADV
 Share

Recommended Posts

Frumos, bravo dude ai avansat.

    _________________________________________________
    |                                                        _________             |
    |    |    /          /|        |\            |      /                   \          |
    |    |  /        /   |          |  \          |      |                              |
    |    |/       /     |           |    \        |      |                              |   
    |    |\              |           |      \      |      |        _____            |
    |    |  \            |           |        \    |      |                 \           |
    |    |    \          |           |          \  |      |                   |          |
    |    |      \        |           |            \|      \_________/           |
    |_______________________________________________|

Link to comment
Share on other sites

 

CMD:creategun(playerid, params[]) {

if(PlayerInfo[playerid][pJob] != 5) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai jobul Arms Dealer!");
if(GetPlayerSkill(playerid) < 5) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai skill 5!");
 
new result[64];
if(sscanf(params, "s[64]", result)) {
SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/creategun <gun name>");
SCM(playerid, -1, "Deagle (1000), M4A4 (2000), AK47 (1500), Combat-Shotgun (5000), Rifle(3000).");
return 1;
}
if(strcmp(result,"deagle",true) == 0) {
if(PlayerInfo[playerid][pMats] < 1000) return SCM(playerid, COLOR_GREY, "Nu ai suficiente materiale!");
PlayerInfo[playerid][pMats] -= 1000;
UpdateVar(playerid, "Materials", PlayerInfo[playerid][pMats]);
ServerWeapon(playerid, 24, 50);
SCM(playerid, COLOR_YELLOW, "Ai creat arma Deagle cu 1000 de materiale.");
}
else if(strcmp(result,"m4a4",true) == 0) {
if(PlayerInfo[playerid][pMats] < 2000) return SCM(playerid, COLOR_GREY, "Nu ai suficiente materiale!");
PlayerInfo[playerid][pMats] -= 2000;
UpdateVar(playerid, "Materials", PlayerInfo[playerid][pMats]);
ServerWeapon(playerid, 31, 120);
SCM(playerid, COLOR_YELLOW, "Ai creat arma M4A4 cu 2000 de materiale.");
}
else if(strcmp(result,"ak47",true) == 0) {
if(PlayerInfo[playerid][pMats] < 1500) return SCM(playerid, COLOR_GREY, "Nu ai suficiente materiale!");
PlayerInfo[playerid][pMats] -= 1500;
UpdateVar(playerid, "Materials", PlayerInfo[playerid][pMats]);
ServerWeapon(playerid, 30, 120);
SCM(playerid, COLOR_YELLOW, "Ai creat arma AK47 cu 1500 de materiale.");
}
else if(strcmp(result,"combat-shotgun",true) == 0) {
if(PlayerInfo[playerid][pMats] < 5000) return SCM(playerid, COLOR_GREY, "Nu ai suficiente materiale!");
PlayerInfo[playerid][pMats] -= 5000;
UpdateVar(playerid, "Materials", PlayerInfo[playerid][pMats]);
ServerWeapon(playerid, 27, 20);
SCM(playerid, COLOR_YELLOW, "Ai creat arma Combat-Shotgun cu 1500 de materiale.");
}
else if(strcmp(result,"rifle",true) == 0) {
if(PlayerInfo[playerid][pMats] < 3000) return SCM(playerid, COLOR_GREY, "Nu ai suficiente materiale!");
PlayerInfo[playerid][pMats] -= 3000;
UpdateVar(playerid, "Materials", PlayerInfo[playerid][pMats]);
ServerWeapon(playerid, 33, 120);
SCM(playerid, COLOR_YELLOW, "Ai creat arma Rifle cu 1500 de materiale.");
}
else SCM(playerid, -1, "Deagle (1000), M4A4 (2000), AK47 (1500), Combat-Shotgun (5000), Rifle(3000).");
return 1; }stock GetHudColor(cid) {
switch(cid) {
case 0: return 0xFFFFFFFF;
case 1: return 0xB8BFC2FF;
case 2: return 0xFF0000FF;
case 3: return 0x00FF2FFF;
case 4: return 0x0E8C19FF;
case 5: return 0x0022FFFF;
case 6: return 0x00AAFFFF;
case 7: return 0x00FFD0FF;
case 8: return 0xFFFB00FF;
case 9: return 0xFF8800FF;
case 10: return 0xFFB957FF;
case 11: return 0x8000FFFF;
case 12: return 0xFF0077FF;
}
return 1; }stock GetHudColor2(cid) {
switch(cid) {
case 0: return 0xFFFFFF10;
case 1: return 0xB8BFC210;
case 2: return 0xFF000010;
case 3: return 0x00FF2F10;
case 4: return 0x0E8C1910;
case 5: return 0x0022FF10;
case 6: return 0x00AAFF10;
case 7: return 0x00FFD010;
case 8: return 0xFFFB0010;
case 9: return 0xFF880010;
case 10: return 0xFFB95710;
case 11: return 0x8000FF10;
case 12: return 0xFF007710;
}
return 1; }stock GetHudColor3(cid) {
switch(cid) {
case 0: return 0xFFFFFF99;
case 1: return 0xB8BFC299;
case 2: return 0xFF000099;
case 3: return 0x00FF2F99;
case 4: return 0x0E8C1999;
case 5: return 0x0022FF99;
case 6: return 0x00AAFF99;
case 7: return 0x00FFD099;
case 8: return 0xFFFB0099;
case 9: return 0xFF880099;
case 10: return 0xFFB95799;
case 11: return 0x8000FF99;
case 12: return 0xFF007799;
}
return 1; }

O fi gen asta?

Link to comment
Share on other sites

Dap comanda aia este pe GM Burned(eu lucrez pe el) deci era normal sa fac variabile etc ca acolo. Dar din cate vezi in sistemul meu este ceva avansat ;)

Da, e avansat pe taburi. Nimic mai mult, nimic diferit.

Link to comment
Share on other sites

Da, e avansat pe taburi. Nimic mai mult, nimic diferit.

Da frate asa e, e ca ala vechi am schimbat o singura culoare. Daca nu iti place nu comenta aiurea, doar pentru ca tie iti place numai bugged asta nu inseamna ca trebuie sa ne placa si noua. Eu m-am plictisit sa vad numai bugged ;)

+ Daca te uiti la al meu are mai multe chestii schimbate ;) + si jobu e schimbat da am uitat sa modific

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...