Jump to content

Ch1NeZu

Membru
  • Posts

    196
  • Joined

  • Last visited

    Never

Everything posted by Ch1NeZu

  1. Ch1NeZu

    ajutor carbomb

    .... dabea am inteles ce ai zis if (strcmp(cmd, "/blowup", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerCuffed[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " You cant blow up this bomb you already Cuffed !"); return 1; } if(Bomb_e[playerid] != 0 || Bomb_car[playerid] != 0) { BlowUpBomb(playerid); } else { SendClientMessage(playerid, COLOR_GRAD2, "Use /placebomb first!"); return 1; } } return 1; } if (strcmp(cmd, "/placebomb", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(IsACop(playerid)) { SendClientMessage(playerid, COLOR_GREY, " To bad you are a Cop !"); return 1; } if(PlayerCuffed[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " You cant place a bomb you already Cuffed !"); return 1; } if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /placebomb [detonator] [time] seconds!!!"); SendClientMessage(playerid, COLOR_GRAD2, "types: 0 = time, 1 = manual"); return 1; } new detonator; detonator = strval(tmp); if(detonator == 0) { tmp = strtok(cmdtext, idx); new time; time = strval(tmp); if(time > 0) { if(PlayerInfo[playerid][pBomb] > 0) { if(Bomb_car[playerid] != 0 || Bomb_e[playerid] != 0) { SendClientMessage(playerid, COLOR_GRAD2, "Wait until your other bomb explodes!"); return 1; } if(IsPlayerInAnyVehicle(playerid)) { new car = GetPlayerVehicleID(playerid); Bomb_car[playerid] = car; format(string, sizeof(string), "You placed a bomb in your vehicle wich will blow up in %d seconds", time); SendClientMessage(playerid, COLOR_RED2, string); PlayerInfo[playerid][pBomb] -=1; } else { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z); Bomb_x[playerid] = x; Bomb_y[playerid] = y; Bomb_z[playerid] = z; Bomb[playerid] = CreateStreamObject(1654,Bomb_x[playerid],Bomb_y[playerid],Bomb_z[playerid]-0.958,270.0,0.0,00.00,200.0); format(string, sizeof(string), "You placed a bomb wich will blow up in %d seconds", time); SendClientMessage(playerid, COLOR_RED2, string); PlayerInfo[playerid][pBomb] -= 1; format(string, sizeof(string), "You have %d bombs left.", PlayerInfo[playerid][pBomb]); SendClientMessage(playerid, COLOR_RED2, string); Bomb_e[playerid] = 1; } SetTimerEx("BlowUpBomb", time*1000, 0, "i", playerid); return 1; } else { SendClientMessage(playerid, COLOR_GRAD2, "You don't have a bomb!"); return 1; } } } else { if(PlayerInfo[playerid][pBomb] > 0) { if(Bomb_car[playerid] != 0 || Bomb_e[playerid] != 0) { SendClientMessage(playerid, COLOR_GRAD2, "Wait until your other bomb explodes!"); return 1; } if(IsPlayerInAnyVehicle(playerid)) { new car = GetPlayerVehicleID(playerid); Bomb_car[playerid] = car; format(string, sizeof(string), "You placed a bomb in your vehicle. Use /blowup to blow up the bomb."); SendClientMessage(playerid, COLOR_RED2, string); PlayerInfo[playerid][pBomb] -=1; } else { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z); Bomb_x[playerid] = x; Bomb_y[playerid] = y; Bomb_z[playerid] = z; Bomb[playerid] = CreateStreamObject(1654,Bomb_x[playerid],Bomb_y[playerid],Bomb_z[playerid]-0.958,270.0,0.0,00.00,200.0); format(string, sizeof(string), "You placed a bomb. Use /blowup to blow up the bomb."); SendClientMessage(playerid, COLOR_RED2, string); PlayerInfo[playerid][pBomb] -= 1; Bomb_e[playerid] = 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, "You don't have a bomb!"); return 1; } } } return 1; } if (strcmp(cmd, "/getbomb", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) { if(GetPlayerMoney(playerid) < 1) { SendClientMessage(playerid, COLOR_GREY, " You dont have enough money with you !"); return 1; } new gun; new gunid[16]; new gunstring1[256]; new gunstring2[256]; new gunstring3[256]; new gunstring4[256]; new gunstring5[256]; new infostring[256]; new guncharge; new ammocharge; new location = PlayerInfo[playerid][pLocal]; if(location == 99 || location == 100 || location == 102 || location == 104) { if(BizzInfo[location-99][bProducts] <= 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } new mod = 100; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), "USAGE: /getbomb [gunname] [ammoamount]"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Guns & Ammo ***"); SendClientMessage(playerid, COLOR_GRAD2,string); format(gunstring1, 256, "Weapons: parachute ($%d) golfclub ($%d) nightstick ($%d) baseballbat ($%d) shovel ($%d) poolcue ($%d)", GunPrice[0][0]/100*mod,GunPrice[1][0]/100*mod,GunPrice[2][0]/100*mod,GunPrice[3][0]/100*mod,GunPrice[4][0]/100*mod,GunPrice[5][0]/100*mod,GunPrice[6][0]/100*mod); SendClientMessage(playerid, COLOR_GRAD3, gunstring1); format(gunstring2, 256, "Weapons: purpledildo ($%d) whitedildo ($%d) longwhitedildo ($%d) whitedildo2 ($%d) flowers ($%d) cane", GunPrice[7][0]/100*mod,GunPrice[8][0]/100*mod,GunPrice[9][0]/100*mod,GunPrice[10][0]/100*mod,GunPrice[11][0]/100*mod,GunPrice[12][0]/100*mod); SendClientMessage(playerid, COLOR_GRAD3, gunstring2); format(gunstring3, 256, "Weapons: sdpistol ($%d) deagle ($%d) mp5 ($%d)", GunPrice[13][0]/100*mod,GunPrice[14][0]/100*mod,GunPrice[15][0]/100*mod,GunPrice[16][0]/100*mod,GunPrice[17][0]/100*mod,GunPrice[18][0]/100*mod); SendClientMessage(playerid, COLOR_GRAD3, gunstring3); format(gunstring4, 256, "Weapons: shotgun ($%d) ak47 ($%d) m4 ($%d) rifle ($%d)", GunPrice[19][0]/100*mod,GunPrice[20][0]/100*mod,GunPrice[21][0]/100*mod,GunPrice[22][0]/100*mod,GunPrice[23][0]/100*mod,GunPrice[24][0]/100*mod); SendClientMessage(playerid, COLOR_GRAD3, gunstring4); format(gunstring5, 256, "Weapons: pistolammo ($%d) shotgunammo ($%d) smgammo ($%d) assaultammo ($%d) rifleammo ($%d)", GunPrice[25][0],GunPrice[26][0],GunPrice[27][0],GunPrice[28][0],GunPrice[29][0]); SendClientMessage(playerid, COLOR_GRAD3, gunstring5); SendClientMessage(playerid, COLOR_GRAD3, "Weapons: bomb ($150000)"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); return 1; } strmid(gunid, tmp, 0, strlen(cmdtext), 255); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), "USAGE: /buygun [gunname] [ammoamount]"); return 1; } new ammo = strval(tmp); if(ammo < 1 || ammo > 999) { SendClientMessage(playerid, COLOR_GREY, " Ammo ammount not lower then 1 or higher then 999 !"); return 1; } if (strcmp(gunid, "parachute", true, strlen(gunid)) == 0) { gun = 46; guncharge = GunPrice[0][0]/100*mod; ammocharge = 0; } else if (strcmp(gunid, "golfclub", true, strlen(gunid)) == 0) { gun = 2; guncharge = GunPrice[1][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 2; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "nightstick", true, strlen(gunid)) == 0) { gun = 3; guncharge = GunPrice[2][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 3; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "baseballbat", true, strlen(gunid)) == 0) { gun = 5; guncharge = GunPrice[4][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 5; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "shovel", true, strlen(gunid)) == 0) { gun = 6; guncharge = GunPrice[5][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 6; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "poolcue", true, strlen(gunid)) == 0) { gun = 7; guncharge = GunPrice[6][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 7; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "purpledildo", true, strlen(gunid)) == 0) { gun = 10; guncharge = GunPrice[7][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 10; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "whitedildo", true, strlen(gunid)) == 0) { gun = 11; guncharge = GunPrice[8][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 11; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "longwhitedildo", true, strlen(gunid)) == 0) { gun = 12; guncharge = GunPrice[9][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 12; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "whitedildo2", true, strlen(gunid)) == 0) { gun = 13; guncharge = GunPrice[10][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 13; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "flowers", true, strlen(gunid)) == 0) { gun = 14; guncharge = GunPrice[11][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 14; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "cane", true, strlen(gunid)) == 0) { gun = 15; guncharge = GunPrice[12][0]/100*mod; ammocharge = 0; PlayerInfo[playerid][pGun1] = 15; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "sdpistol", true, strlen(gunid)) == 0) { gun = 23; guncharge = GunPrice[13][0]/100*mod; ammocharge = GunPrice[25][0]*ammo; PlayerInfo[playerid][pGun2] = 23; PlayerInfo[playerid][pAmmo2] = ammo; } else if (strcmp(gunid, "deagle", true, strlen(gunid)) == 0) { gun = 24; guncharge = GunPrice[15][0]/100*mod; ammocharge = GunPrice[25][0]*ammo; PlayerInfo[playerid][pGun2] = 24; PlayerInfo[playerid][pAmmo2] = ammo; } else if (strcmp(gunid, "mp5", true, strlen(gunid)) == 0) { gun = 29; guncharge = GunPrice[18][0]/100*mod; ammocharge = GunPrice[27][0]*ammo; PlayerInfo[playerid][pGun3] = 29; PlayerInfo[playerid][pAmmo3] = ammo; } else if (strcmp(gunid, "shotgun", true, strlen(gunid)) == 0) { gun = 25; guncharge = GunPrice[19][0]/100*mod; ammocharge = GunPrice[26][0]*ammo; PlayerInfo[playerid][pGun3] = 25; PlayerInfo[playerid][pAmmo3] = ammo; } else if (strcmp(gunid, "ak47", true, strlen(gunid)) == 0) { gun = 30; guncharge = GunPrice[22][0]/100*mod; ammocharge = GunPrice[28][0]*ammo; PlayerInfo[playerid][pGun4] = 30; PlayerInfo[playerid][pAmmo4] = ammo; } else if (strcmp(gunid, "m4", true, strlen(gunid)) == 0) { gun = 31; guncharge = GunPrice[23][0]/100*mod; ammocharge = GunPrice[28][0]*ammo; PlayerInfo[playerid][pGun4] = 31; PlayerInfo[playerid][pAmmo4] = ammo; } else if (strcmp(gunid, "rifle", true, strlen(gunid)) == 0) { gun = 33; guncharge = GunPrice[24][0]/100*mod; ammocharge = GunPrice[29][0]*ammo; PlayerInfo[playerid][pGun4] = 33; PlayerInfo[playerid][pAmmo4] = ammo; } else if (strcmp(gunid, "bomb", true, strlen(gunid)) == 0) { ammocharge = 75000; guncharge = 75000; gun = 999; } else { SendClientMessage(playerid, COLOR_GRAD6, "ShopKeeper says: I have never heard of that weapon."); return 1; } if((guncharge+ammocharge) > GetPlayerMoney(playerid)) { format(infostring, 256, " You don't have $%d !",guncharge+ammocharge); SendClientMessage(playerid, COLOR_GRAD3, infostring); return 1; } if(GetPlayerMoney(playerid) < (guncharge+ammocharge)) { SendClientMessage(playerid, COLOR_GREY, " Can't afford that !"); return 1; } if(gun == 999) { ammo = 1; } new payout = guncharge + ammocharge; format(infostring, 256, "You have purchased %s with %d ammo for $%d",gunid,ammo,payout); SendClientMessage(playerid, COLOR_GRAD3, infostring); if(location == 102 && IsACop(playerid)) { } else { GivePlayerMoney(playerid, - payout); } if(gun != 999) { BizzInfo[location-99][bTill] += payout; ExtortionBiz(location-99, payout); } else { BizzInfo[location-99][bTill] += 15000; ExtortionBiz(location-99, 15000); } BizzInfo[location-99][bProducts]-=2; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); if(gun != 999) { PlayerWeapons[playerid] = 1; GivePlayerWeapon(playerid, gun, ammo); } else { PlayerInfo[playerid][pBomb] += ammo; } if(IsACop(playerid) && OnDuty[playerid] < 1) { PlayerInfo[playerid][pBomb] = 0; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s bought weapons for $%d at biz %d", sendername, payout, location-99); printf("%s", string); PayLog(string); } else { SendClientMessage(playerid, COLOR_WHITE,"You are not in a store."); return 1; } } } return 1; } Vezi daca merge tiam facuto pentru factiunea 20 si cu /getbomb
  2. Te pot ajuta cu intrebarea 2 if(strcmp(cmdtext, "/godmode", true)==0) { godmode[playerid] = 1; SendClientMessage(playerid,0x0F62DFF,"GOdMODE ACTIVAT !"); SendClientMessage(playerid,0x09E0FF,"-VIATA INFINITA,VIATA MASINII INFINITA + 900000$,SCOR 9999,ARMURA INFINITA, "); //SendClientMessage(playerid,0x09EF6FF," "); SetPlayerHealth(playerid,100000); SetVehicleHealth(GetPlayerVehicleID(playerid),100000); SetPlayerArmour(playerid,100000); GivePlayerMoney(playerid,900000); SetPlayerScore(playerid,9999); RepairVehicle(VehicleID1); return 1; } if (strcmp("/godlist", cmdtext, true) == 0) { SendClientMessage(playerid, 0x0009FFFF, "|__GodMode List__|"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(godmode[i] == 1) { new name[128]; GetPlayerName(i,name,128); format(string, 256, "%s", name); SendClientMessage(playerid, 0xFFFFFFAA, string); } } } return 1; } Nu stiu sigur daca o sa mearga dar incearca
  3. Ch1NeZu

    Sistem AFK

    ce greu e sa dai search folosestel pasta sau fati o idee dupa asta si modifical http://forum.sa-mp.ro/index.php/topic,4419.0.html
  4. Ch1NeZu

    Problema Script

    if (strcmp("/gate", cmdtext, true, 10) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 { MoveObject(mygate, -2242.358643, 644.206421, 59.069702, 0.0000, 3.0); SendClientMessage(playerid, 0xFFFFFF, "The gate is opening"); SetTimer("GateClose", 5000, 1);//in loc de 5000 pui la cate secunde vrei sa se inchida } } return 1; } forward GateClose() public GateClose() { MoveObject(mygate,-2242.361328, 643.135803, 51.993179, 3.0); SendClientMessage(playerid, 0xFFFFFF, "The gate is closing"); return 1; } modifici tu id-ul factini eu ti-am pus police department Incearca asta vezi daca merge
  5. ce greu e sa iei basic.pwn al lui razr si sa scoti portile astea X( faci un fs si creditele iti revin tie :-j
  6. Sal incerc sa fac primul meu filterscript si imi da 1 eroare C:\Documents and Settings\ChiNeZu\Desktop\vama.pwn(107) : error 017: undefined symbol "cmd" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. codul este public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmd, "/barrier", true) == 0) <------ linia 107 { if(PlayerToPoint(3.0, playerid, 63.0148,-1524.9260,4.9184)) { if(PlayerInfo[playerid][pPassport] == 0) { MoveObject(vama1,54.190098, -1529.675781, 5.085436, 2.5); MoveObject(vama2,52.703281, -1540.749634, 5.067452, 2.5); MoveObject(vama1,54.231167, -1529.687012, 9.320637, 3.5); SetTimer("GateClosse", 4000, 0); SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds."); return 1; } else { SendClientMessage(playerid, COLOR_1BLUE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else if(PlayerToPoint(3.0, playerid, 43.9277,-1540.1890,5.2053)) { if(PlayerInfo[playerid][pPassport] == 0) { MoveObject(vama2,52.695782, -1540.765869, 9.255125, 3.5); SetTimer("GateClosse", 4000, 0); SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds."); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else if(PlayerToPoint(5.0, playerid, 1734.4246,548.4321,26.5624)) { if(PlayerInfo[playerid][pPassport] == 0) { MoveObject(vama3, 1735.363892, 541.511719, 23.052874, 3.5); SetTimer("GateClossse", 4000, 0); SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds."); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else if(PlayerToPoint(5.0, playerid, 1752.8773,524.2502,27.5999)) { if(PlayerInfo[playerid][pPassport] == 0) { MoveObject(vama4, 1752.032959, 534.572021, 23.052874, 3.5); SetTimer("GateClossse", 4000, 0); SendClientMessage(playerid, COLOR_1GREEN, "The barrier was opened, it closed in 4 seconds."); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "* You don't have an Passport, go in the City Hall and buy one."); return 1; } } else { SendClientMessage(playerid, COLOR_WHITE, "You are not at Barrier."); return 1; } } return 0; }
  7. Pai daca ai zis ca ai FS inseamna ca trb sa il pui sub public OnFilterScriptInit() {
  8. Daca ne explici si unde pui codu ala ar fii bine P.S am o intrebare cum as putea face ca atunci cand un admin da /aod sa ii se transforme numele in 2 culor adik O data sa fie Galben o data sa fie rosu... la interval de 1 sec :-? ???
  9. E pe linux ! razvane gamecp se plateste separat e un PROGRAM
  10. Da dar nu e problema numai cu textdraw-rile e vorba si de un filterscript cu ceasul adik ori nu imi apar orele dar imi apare luna minutele si secundele ori nu imi apare deloc ceasul...
  11. Salut am pe srv un deposit de drugs/materials dar am un bug la el.... de ex: Am la mine 6 grame de droguri si ma duc si pun 1 gram de drog in deposit iar cand scot nu se goleste depositul adik pot sa scot din 1 gram de drog cat vreau eu si 100 , si la materiale la fel...... ce trb facut ? ( Si sunt sigur ca nu e doar 1 bug in acest cod credk sunt mai multe va rog uitativa si facetil va multumesc...! aveti +1 de la mine daca ma ajutati Acesta e codul //---------------------------------[F-DEPOSIT-SITEM]------------------------------------- if(strcmp(cmd, "/fdrugs", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAMember(playerid)) { new x; x = PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader]; if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, " You need to be Rank 2 or Higher for this action !"); return 1; } /*if(DynamicFactions[x][fSafe] <= 0) { SCM(playerid, COLOR_WHITE, "The leader must buy a SAFE first !"); return 1; }*/ new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { format(string, sizeof(string), "Faction Drugs: $%d.", DynamicFactions[x][fDrugs]); SCM(playerid, COLOR_WHITE, string); } SCM(playerid, COLOR_WHITE, "|______________________FactionsDrugs___________________|"); SCM(playerid, COLOR_WHITE, "| USAGE: /fdrugs [name] [ammount]"); SCM(playerid, COLOR_GREY, " | Available names: Take , Put"); SCM(playerid, COLOR_WHITE, "|______________________________________________________|"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, playername, sizeof(playername)); if(strcmp(x_nr,"take",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fdrugs take [amount]"); return 1; } new materialsdeposit = strval(tmp); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fdrugs take [amount]"); return 1; } if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { if(materialsdeposit <=DynamicFactions[x][fDrugs]) { PlayerInfo[playerid][pDrugs] += materialsdeposit; DynamicFactions[x][fDrugs]=DynamicFactions[x][fDrugs]-materialsdeposit; format(string, sizeof(string), "You have taken %d drugs from the storage facility, Drugs Total: %d ", materialsdeposit,DynamicFactions[x][fDrugs]); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s has just taken %d drugs from the faction storage facility.",sendername,materialsdeposit); SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string); SaveDynamicFactions(); return 1; } else { SCM(playerid, COLOR_GREY, "There isn't that much drugs in storage!"); } } else { SCM(playerid, COLOR_GREY , "You are not at the faction storage facility!"); } } else if(strcmp(x_nr,"put",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fdrugs put [amount]"); return 1; } new materialsdeposit = strval(tmp); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fdrugs put [amount]"); return 1; } if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { if(materialsdeposit <= PlayerInfo[playerid][pDrugs]) { PlayerInfo[playerid][pDrugs] =PlayerInfo[playerid][pDrugs]-materialsdeposit; DynamicFactions[x][fDrugs] +=materialsdeposit; format(string, sizeof(string), "You putted %d drugs from the storage facility, Drugs Total: %d ", materialsdeposit,DynamicFactions[x][fDrugs]); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s has just putted %d drugs from the faction storage facility.",sendername,materialsdeposit); SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string); SaveDynamicFactions(); return 1; } else { SCM(playerid, COLOR_GREY, "You don't have that much drugs on you!"); } } else { SCM(playerid, COLOR_GREY, "You are not at the faction storage facility!"); } } else { SCM(playerid, COLOR_GREY, "Unknown fDrugs name !"); return 1; } } else { SCM(playerid, COLOR_GREY, "You are not a gang member !"); return 1; } } return 1; } if(strcmp(cmd, "/fmats", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAMember(playerid)) { new x; x = PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader]; if(PlayerInfo[playerid][pRank] < 3) { SCM(playerid, COLOR_GREY, " You need to be Rank 3 or Higher for this action !"); return 1; } /*if(DynamicFactions[x][fSafe] <= 0) { SCM(playerid, COLOR_WHITE, "The leader must buy a SAFE first !"); return 1; }*/ new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { format(string, sizeof(string), "Faction Mats: $%d.", DynamicFactions[x][fMats]); SCM(playerid, COLOR_WHITE, string); } SCM(playerid, COLOR_WHITE, "|________________________fMats_________________________|"); SCM(playerid, COLOR_WHITE, "| USAGE: /fmats [name] [ammount]"); SCM(playerid, COLOR_GREY, " | Available names: Take , Put"); SCM(playerid, COLOR_WHITE, "|______________________________________________________|"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, playername, sizeof(playername)); if(strcmp(x_nr,"take",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fmats take [amount]"); return 1; } new materialsdeposit = strval(tmp); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fmats take [amount]"); return 1; } if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { if(materialsdeposit <=DynamicFactions[x][fMats]) { PlayerInfo[playerid][pMats] += materialsdeposit; DynamicFactions[x][fMats]=DynamicFactions[x][fMats]-materialsdeposit; format(string, sizeof(string), "You have taken %d mats from the storage facility, Materials Total: %d ", materialsdeposit,DynamicFactions[x][fMats]); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s has just taken %d mats from the faction storage facility.",sendername,materialsdeposit); SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string); SaveDynamicFactions(); return 1; } else { SCM(playerid, COLOR_GREY, "There isn't that much mats in storage!"); } } else { SCM(playerid, COLOR_GREY , "You are not at the faction storage facility!"); } } else if(strcmp(x_nr,"put",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fmats put [amount]"); return 1; } new materialsdeposit = strval(tmp); if(!strlen(tmp)) { SCM(playerid, COLOR_GREY, "[USAGE:] /fmats put [amount]"); return 1; } if(PTP(5.0,playerid,DynamicFactions[x][fX],DynamicFactions[x][fY],DynamicFactions[x][fZ])) { if(materialsdeposit <= PlayerInfo[playerid][pMats]) { PlayerInfo[playerid][pMats] =PlayerInfo[playerid][pMats]-materialsdeposit; DynamicFactions[x][fMats] +=materialsdeposit; format(string, sizeof(string), "You putted %d mats from the storage facility, Materials Total: %d ", materialsdeposit,DynamicFactions[x][fMats]); SCM(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s has just putted %d mats from the faction storage facility.",sendername,materialsdeposit); SendFamilyMessage(x, TEAM_AZTECAS_COLOR, string); SaveDynamicFactions(); return 1; } else { SCM(playerid, COLOR_GREY, "You don't have that much mats on you!"); } } else { SCM(playerid, COLOR_GREY, "You are not at the faction storage facility!"); } } else { SCM(playerid, COLOR_GREY, "Unknown fMats name !"); return 1; } } else { SCM(playerid, COLOR_GREY, "You are not a gang member !"); return 1; } } return 1; }
  12. cum sa fac asta daca nam gamecp ... trb sa stau dupa cel care mia dat hostul .... sa dea restart...
  13. Am rezolvat ms mult la toti ! aveti +1
  14. ms la amn2 dar am o intrebare pentru saliery ce face SendBZMessage(COLOR_1GREEN, string); si SendCZMessage(COLOR_1BLUE, string); ??? ca vreau sa fac la fiecare mafie asa
  15. Salut cine stie cum pot face ca atunci cand un membru al unei mafii de ex yakuza omoara un lcn sa ii dea 5000$ iar daca omoara un cop sa ii dea 7000$ cine ma ajuta are +1 Iar daca acel membru a omorat sau a fost omorat de catre un membru al unei mafii sa anunte pe Family chat "Vasile a fost omorat de catre Manole" sau "Vasile la omorat pe Manole si a primit 5000$" si in cazul in care omoara un cop la fel "Vasile a macelarit un politist si a primit 7000$"
  16. Dute cautale in mod si stergele ca sunt deja definite in fisierul inc bft
  17. cauta enum pInfo si adauga pAdmin, Acum dute unde sunt toate linile cu new ....[MAX_PLAYERS]; si adauga new AdminDuty[MAX_PLAYERS];
  18. Sal am o problema la srv.... cand dau /rcon gmx imi dispar TextDraw-urile si ceas-ul ( textdraw-urile sunt in mod iar ceas-ul este un fs ) .... ce pot face.... daca aveti alta comanda de dat restart la srv plz postatio am nev de aceasta comanda ca nam gamecp ...
  19. Incearca asta public OnPlayerCommandText(playerid, cmdtext[]) { if( strcmp(cmdtext, "/yakuza", true)==0) { if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) MoveObject(parkgate, 1082.390381, -1208.368896, 14.070005, 5); SetTimerEx("parcare", 5 * 1000, 0, "i", playerid); SendClientMessage(playerid,COLOR_GRAD1,"You are not a member of Yakuza"); return 1; } return 0; } si la linia if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) Schimbi in loc de [pMember] == 6 si [pLeader] == 6 pui id-ul factiuni ( ca nush sigur daca e 6 )
  20. Salut as avea si eu nevoie de comanda ca nu pot sa ii zic anim /fstyle As vrea sa fie numai pentru admini iar cand un admin da /fstyle sa ii apara un meniu cu Genul luptei de ex -Box -Karate -Normal unde am vazut eu comanda asta erau vre-o 4 sau 5 Iar daca acel player alege karate de ex cand tine click dreapta si apasa F sa poata sa se lupte in stil carate
  21. Pai eu te-as sfatui sa iti faci un FS unde sa pui obiectele folosite de streamer... eu asa am si imi este mai usor - ca sa creezi un object cu streamer nu folosesti CreateObject folosesti CreateStreamedObject Credk la asta te-ai referit
  22. cauti si tu la comanda /goto si stergi SendClientMessage [Admin]%has goto sau ceva de genu
  23. Salut as dori si eu comanda /destroycar cand intru in masina si dau destroycar sa dispara masina ( si daca e in gm sa se respawneze ) am comanda /respawnallcars dar daca dau /veh imi ramane masina acolo .... unde o spawnez...
  24. Ch1NeZu

    As dori si eu

    Nu rob-ul acela join el vrea system-ul de rob pentru bank search pe sa-mp.com sunt multe de bagat ca sa til dea cineva aici
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.