Jump to content

LucaAdv.

Membru
  • Posts

    201
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by LucaAdv.

  1. Nu recomand, am platit pentru 2 sisteme mi le-a dat si pe alea buguite, mai mult nici nu mai raspunde la telefon / discord. ...
  2. LucaAdv.

    Help

    Nu stiu cum zici, imi poti da linia pe care sa o caut ?
  3. LucaAdv.

    Help

    @Mister scuze, poftim Comanda + cv functii CMD:attack(playerid, params[]) { if(!IsAMember(playerid)) return SendClientMessage(playerid,COLOR_GREY, "Nu faci parte dintr-o mafie."); if(PlayerInfo[playerid][pRank] < 3) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"You do not have rank 3."); new turf,string[100]; for(new i = 1; i <= sizeof(TurfInfo); i++) { if(IsPlayerInTurf(playerid, i) == 1) { turf = i; break; } } new hour,minute,second, year, month, day; gettime(hour,minute,second); getdate(year, month, day); new days[180]; format(days, sizeof(days), GetWeekDay(day, month, year)); if(PlayerInfo[playerid][pAdmin] < 7) { //if(strcmp(days,"Saturday",true) == 0 || strcmp(days,"Sunday",true) == 0) return SCM(playerid, COLOR_LIGHTRED, "Nu se dau war-uri in weekend!"); if(hour == 20 || hour == 22) {} else return SendClientMessage(playerid, COLOR_LIGHTRED, "War-uri se pot da doar in intervalul 20:00 - 22:00!"); if(GetFactionMembersOn2(PlayerInfo[playerid][pMember]) < 2) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu sunt minim 3 membri conectati din factiunea ta!"); if(GetFactionMembersOn2(TurfInfo[turf][zOwned]) < 2) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece nu sunt minim 3 membri conectati din factiunea care detine teritoriul!"); } if(turf == 0) return SendClientMessage(playerid, COLOR_WHITE, "Nu esti pe un teritoriu!"); new faction = PlayerInfo[playerid][pMember]; if(TurfInfo[turf][zOwned] == faction) return SendClientMessage(playerid, COLOR_GREY, "Nu poti ataca turful mafiei tale."); if(WarInfo[turf][wAttacker] != 0) return SendClientMessage(playerid, COLOR_WHITE, "Acest turf este deja atacat."); if(InWar[faction] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Este deja un war activ."); if(InWar[TurfInfo[turf][zOwned]] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Aceasta mafie are deja un war activ."); if(FactionDeelay[PlayerInfo[playerid][pMember]] != 0) { format(string, sizeof(string), "Poti folosi aceasta comanda peste %d minute (%d secunde).", FactionDeelay[PlayerInfo[playerid][pMember]]/60, FactionDeelay[PlayerInfo[playerid][pMember]]); SCM(playerid, COLOR_LGREEN, string); return 1; } format(string, sizeof(string), "[WAR] %s started a war with %s.",FactionName(WarInfo[turf][wAttacker]), FactionName(TurfInfo[turf][zOwned])); SendAdminMessage(COLOR_LOGS, string, 1); format(string, sizeof(string), "[WAR] %s a atacat teritoriul %d detinut de factiunea %s.",GetName(playerid),turf,FactionName(TurfInfo[turf][zOwned])); SendFactionMessage(faction,COLOR_MONEY,string); format(string, sizeof(string), "[WAR] %s (%s) a atacat teritoriul %d detinut de factiunea ta.",FactionName(WarInfo[turf][wAttacker]),GetName(playerid),turf); SendFactionMessage(TurfInfo[turf][zOwned],COLOR_MONEY,string); new query[128]; format(query,sizeof(query),"UPDATE `turfs` SET `Time`='24' WHERE `ID`='%d'",turf); mysql_query(SQL,query); TurfInfo[turf][zTime] = 24; if(PlayerInfo[playerid][pAdmin] == 7) WarInfo[turf][wTime] = 1200; else WarInfo[turf][wTime] = 1200; WarInfo[turf][wAttacker] = faction; WarInfo[turf][wFaction] = TurfInfo[turf][zOwned]; worstscoreat[turf] = 0; worstmemberat[turf] = 999; bestscoreat[turf] = 0; bestmemberat[turf] = 999; worstscoredf[turf] = 0; worstmemberdf[turf] = 999; bestscoredf[turf] = 0; bestmemberdf[turf] = 999; InWar[TurfInfo[turf][zOwned]] = 1; InWar[faction] = 1; InWarTurf[faction] = turf; InWarTurf[TurfInfo[turf][zOwned]] = turf; foreach(Player, i) { if(IsPlayerLogged[i] == 1) { if(PlayerInfo[i][pMember] == faction || PlayerInfo[i][pMember] == TurfInfo[turf][zOwned]) UpdateVar(i, "WarTurf", turf); } } SetVehicle(faction, turf); SetVehicle(TurfInfo[turf][zOwned], turf); return 1; } function SetVehicle(fid, turf) { for(new i; i < MAX_SVEHICLES; i++) { if(ServerVehicles[i][vFaction] == fid) SetVehicleVirtualWorld(i, turf); } return 1; } function RespawnVehicle(fid) { for(new i; i < MAX_SVEHICLES; i++) { if(ServerVehicles[i][vFaction] == fid) { SetVehicleVirtualWorld(i, 0); SetVehicleToRespawn(i); } } return 1; }
  4. LucaAdv.

    Help

    @Mister @razvanduciuc
  5. LucaAdv.

    Help

    Salut, baieti si fete. M-am apucat sa scriptez pe gamemode Burned. Intre timp am descoperit un bug la war. Cand ai war nu sunt spawnate masinile (alt vw) ce pot face ?
  6. @Iulian2 daca este pe localhost ai nevoie de aia
  7. La xampp deschide primele doua porturi
  8. Poate ai pus datele gresite ti-am mai zis
  9. Intreaba-i pe cei de la host sa-ti configureze gamemode-ul ! 1 !
  10. Nu ai pus datele corecte sau nu ai pus baza de date in phpmyadmin
  11. Iti explica ceva ? Pune asta : if(PlayerInfo[playerid][pConnectTime] < 2) return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai nevoie de minim 2 ore jucate, pentru a folosi comanda /getgift.");
  12. +1 frumos gamemode. De cand voiam sa vad un asa gm RolePlay
  13. Pune datele corecte la mysql_connect Daca nu iti merge nici asa, da-ne mysql logs !
  14. -1 Daca tu numesti Aia login pe textdraw ma impusc ! E cel mai prost gamemode pe care l-am vazut Stunt!
  15. RPG.amx RPG.pwn Poftim ! ! ! ! !
×
×
  • 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.