Jump to content

BuBu

Membru
  • Posts

    456
  • Joined

  • Last visited

    Never

Everything posted by BuBu

  1. Spune-mi din ce functie face parte? (ma refer public onplayerstate,onplayercoonnect,etc - ti-am dat niste exemple)
  2. BuBu

    Crash server

    Modifica cu (ti-am modificat eu ceva, sper sa iti mearga, nu prea le am cu debug-urile de la crashdetect) public OnPlayerDeath(playerid, killerid, reason) { printf("DEBUG: OnPlayerDeath(%i, %i, %i)", playerid, killerid, reason); new string[128]; new name[MAX_PLAYER_NAME]; new name2[MAX_PLAYER_NAME]; new deathreason[20]; new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); GetPlayerName(playerid, name, sizeof(name)); GetPlayerName(killerid, name2, sizeof(name2)); if(playerid == HuntedPlayer) { format(string, sizeof(string), "{4FA7FF}[Hunting Event] {FFFFFF}%s {4FA7FF}a fost omorat de catre {FFFFFF}%s", PlayerName(playerid), PlayerName(killerid)); SendClientMessageToAll(0xFFD700AA,string); format(string, sizeof(string), "{4FA7FF}[Hunting Event] Acesta a castigat {FFFFFF}%d{4FA7FF}. Un nou event va incepe in 3 ore !", HuntReward ); SendClientMessageToAll(0xFFD700AA,string); IsHunted[playerid] = 0; SetPlayerToTeamColor(playerid); SetPlayerSpawn(playerid); GivePlayerMoney(killerid, HuntReward); HuntedPlayer = INVALID_PLAYER_ID; StartHunt = SetTimer("StartNewHuntGame", 10800000, 0); KillTimer(EndHunt); for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { InHuntGame[i] = 0; } } } if(killerid != INVALID_PLAYER_ID) { if(GetPlayerWeapon(killerid) != reason) { if(AntiFakeKill == 1) { if(reason != 51 || reason != 50 || reason != 18 || reason == 36 || reason == 35 || reason == 40 || reason == 16) { FakeKillWarns[playerid] ++; if(FakeKillWarns[playerid] == 4) { format(string, sizeof(string), "%s (%d), Has been kicked by The Anticheat VirtualStrike for Possible Fake Death Hacks.", name, playerid); SendClientMessageToAll(COLOR_NICERED, string); SendClientMessage(playerid,COLOR_LIGHTBLUE, "You have Been Kicked by The Anticheat For Possible Fake Death Hacks."); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for: Fake Death hacks.",d,m,y,h,mi,s,name); KickLog(string); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Kicked by the Anticheat - Fake Death Hacks.",d,m,y,h,mi,s,name); AddPunishment(playerid, string); Kick(playerid); } else { format(string, sizeof(string), "[VirtualStrike]: %s (%d) Is possibly Using Fake Death Hacks; Check him inmediately!!", name, playerid); SendAdminMessage(COLOR_YELLOW, string); PlayerSuspicious[playerid] = 1; PlayerFakeDeathHacking[playerid] = 1; PlayerGotSpottedRecently[playerid] = 1; SetTimerEx("ResetAcWarn", 300000, 0, "i", playerid); } } } } } if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER) { if(AntiDriveBy == 1) { new model = GetVehicleModel(GetPlayerVehicleID(killerid)); if(model != 520 || model != 425 || model != 432) { PlayerInfo[killerid][pWarns] ++; if(PlayerInfo[playerid][pWarns] == 3) { format(string, sizeof(string), "%s (%d), Has been Kicked by The Anticheat VirtualStrike for Excessive Drive by Killing.", name2, killerid); SendClientMessageToAll(COLOR_NICERED, string); SendClientMessage(killerid,COLOR_LIGHTBLUE, "You have Been Kicked by The Anticheat For Excessive Drive By Killing"); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for: Excessive Drive By Killing",d,m,y,h,mi,s,name2); KickLog(string); Kick(killerid); } else { format(string, sizeof(string), "%s (%d), Has been Warned by The Anticheat VirtualStrike for Drive by Killing.", name2, killerid); SendClientMessageToAll(COLOR_NICERED, string); SendClientMessage(killerid,COLOR_LIGHTBLUE, "You have Been Warned by The Anticheat For Excessive Drive By Killing"); format(string, sizeof(string), "[VirtualStrike]: %s Has Killed someone With Driver Drive By; Player has been Warned.", name2); SendAdminMessage(COLOR_YELLOW, string); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Warned by Anticheat - Reason: Driver drive-by kill.",d,m,y,h,mi,s); AddPunishment(killerid, string); } } } } if(killerid != INVALID_PLAYER_ID) { new playercash; new victimteam = gTeam[playerid]; new Float:px,Float:py,Float:pz; new killerteam = gTeam[killerid]; TextDrawHideForPlayer(playerid, Textdraw39[playerid]); TextDrawHideForPlayer(playerid, Textdraw40[playerid]); gPlayerSpawned[playerid] = 0; if(reason == 0) { deathreason = "Melee"; } else if(reason == 36 || reason == 35 || reason == 40 || reason == 16) { deathreason = "Explosion"; } else if(reason == 18 || reason == 37) { deathreason = "Fire"; } else if(reason == 51) { deathreason = "Explosion"; } else if(reason == 50) { deathreason = "Heli-Kill"; } else { GetWeaponName(reason, deathreason, sizeof(deathreason)); } format(string, sizeof(string),"[INFO]: %s (%d) has been killed by %s (%d) - %s", name,playerid,name2,killerid,deathreason); SendAdminMessage(COLOR_GREEN, string); } else { new text[30]; if(reason == 51) { text = "Explosion"; } else if(reason == 53) { text = "Drowned"; } else if(reason == 54) { text = "Collision"; } else { text = "Death"; } format(string, sizeof(string),"[INFO]: %s (%d) has been killed by Server. (%s)",name,playerid, text); SendAdminMessage(COLOR_GREEN, string); } if(Decoding[playerid] == 1) { Decoding[playerid] = 0; KillTimer(DecoderTimer); HideDecoder(playerid); SendClientMessage(playerid, COLOR_NICERED, "You left the car, decoder stopped!"); decodecode = 0; Decoder = 0; } if(PlayerInfo[playerid][pAdminDuty] >= 1) { PlayerInfo[playerid][pAdminDuty] = 0; } GetPlayerPos(playerid, px, py, pz); MedicBill[playerid] = 1; if (PlayerInfo[killerid][pAchievement9] == 0 && PlayerInfo[killerid][pKills] == 1) { TextDrawSetString(Textdraw64[killerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~Newbie Killer (9) ~n~~n~~w~you won ~g~$100"); ShowAchievement(killerid); SafeGivePlayerMoney(killerid,100); PlayerInfo[killerid][pAchievement9] = 1; } if (PlayerInfo[killerid][pAchievement10] == 0 && PlayerInfo[killerid][pKills] == 75) { TextDrawSetString(Textdraw64[killerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~Serial Killer (10) ~n~~n~~w~you won ~g~$250"); ShowAchievement(killerid); SafeGivePlayerMoney(killerid,250); PlayerInfo[killerid][pAchievement10] = 1; } if (PlayerInfo[killerid][pAchievement11] == 0 && PlayerInfo[killerid][pKills] == 150) { TextDrawSetString(Textdraw64[killerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~Assasin (11) ~n~~n~~w~you won ~g~$500"); ShowAchievement(killerid); SafeGivePlayerMoney(killerid,500); PlayerInfo[killerid][pAchievement11] = 1; } if(gPlayerUsingLoopingAnim[playerid]) { gPlayerUsingLoopingAnim[playerid] = 0; TextDrawHideForPlayer(playerid,txtAnimHelper); } if(WantedPoints[playerid] > 0) { new dstring[128]; new wanted = WantedPoints[playerid]; new diecash = 0; while(WantedPoints[playerid] > 0) { diecash += 500; WantedPoints[playerid] --; } format(dstring, sizeof(dstring), "You lost $%d for dieing with %d Wanted Points.", diecash, wanted); SendClientMessage(playerid, COLOR_YELLOW, dstring); SafeGivePlayerMoney(playerid, - diecash); PlayerInfo[playerid][pWantedDeaths] += 1; } WantedPoints[playerid] = 0; WantedLevel[playerid] = 0; if(PlayerInfo[playerid][pRegularRank] > 0) { SetPlayerHealth(playerid, 100.0); } else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); } gPlayerSpawned[playerid] = 1; SafeTime[playerid] = 60; Checked[playerid] = 1; PlayerGotSpottedRecently[playerid] = 1; SetTimerEx("ResetAcWarn",20000,false, "i", playerid); if(killerid != 255) { if(GetPlayerState(killerid) == 2) { if(ProxDetectorS(20, killerid, playerid)) { if(!IsPlayerInAnyVehicle(playerid)) { if(PlayerInfo[killerid][pMember] == 1||PlayerInfo[killerid][pLeader] == 1||PlayerInfo[killerid][pMember] == 2||PlayerInfo[killerid][pLeader] ==2) { SendClientMessage(killerid, COLOR_YELLOW, "That was a drive-by kill. Don't abuse it."); return 1; } SetPlayerCriminal(killerid,255,"Manslaughter"); return 1; } } } } if (reason == 22) { if (PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000) { PlayerInfo[killerid][pPistSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 23) { if (PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000) { PlayerInfo[killerid][pSilenSkill] += 2; SetPlayerSkills(killerid); } if (PlayerInfo[killerid][pAchievement0] == 0) { TextDrawSetString(Textdraw64[killerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~Silent Kill (0) ~n~~n~~w~you won ~g~$200 ~w~and ~p~50+ of ~y~Silenced Pistol Skill"); ShowAchievement(killerid); PlayerInfo[killerid][pSilenSkill] += 50; SafeGivePlayerMoney(killerid,200); PlayerInfo[killerid][pAchievement0] = 1; } } if (reason == 24) { if (PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000) { PlayerInfo[killerid][pDesertSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 25) { if (PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000) { PlayerInfo[killerid][pShotgSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 26) { if (PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 800) { PlayerInfo[killerid][pSawnSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 27) { if (PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000) { PlayerInfo[killerid][pCombSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 28 || reason == 32) { if (PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 800) { PlayerInfo[killerid][pUziSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 29) { if (PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000) { PlayerInfo[killerid][pSmgSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 30) { if (PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000) { PlayerInfo[killerid][pAkSkill] += 2; SetPlayerSkills(killerid); } } if (reason == 31) { if (PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000) { PlayerInfo[killerid][pM4Skill] += 2; SetPlayerSkills(killerid); } } if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11) { DisablePlayerCheckpoint(playerid); gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE; } new caller = Mobile[playerid]; if(caller != 255) { if(caller < 255) { SendClientMessage(caller, COLOR_GRAD2, "** The line just went dead...."); CellTime[caller] = 0; CellTime[playerid] = 0; Mobile[caller] = 255; } Mobile[playerid] = 255; CellTime[playerid] = 0; } ClearCrime(playerid); if(GettingCK[playerid] < 999) { if(IsPlayerConnected(killerid)) { if(OnCK[killerid] < 999) { new killer[MAX_PLAYER_NAME]; new dier[MAX_PLAYER_NAME]; GetPlayerName(playerid, dier, sizeof(dier)); GetPlayerName(killerid, killer, sizeof(killer)); format(string, sizeof(string), "* %s has performed a Character Kill on you, you aren't able to play with this Character anymore.",killer); SendClientMessage(playerid, COLOR_LIGHTRED, string); format(string, sizeof(string), "** %s has Character Killed %s **",killer,dier); CKLog(string); BroadCast(COLOR_LIGHTRED, string); PlayerInfo[playerid][pCK] = 1; if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; } else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; } if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; } else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; } KickPlayer[playerid] = 1; } } } if(PlayerInfo[playerid][pHeadValue] > 0) { if(IsPlayerConnected(killerid)) { if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 8) { if(GoChase[killerid] == playerid) { //ConsumingMoney[killerid] = 1; new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); SafeGivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]); format(string,128,"<< Hitman %s has fulfilled the contract on %s and collected $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]); SendFamilyMessage(8, COLOR_YELLOW, string); PlayerInfo[playerid][pHeadValue] = 0; GotHit[playerid] = 0; GetChased[playerid] = 999; GoChase[killerid] = 999; } } } } if(victimteam >= 4) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); new slice = 100; //$100 playercash = GetPlayerMoney(playerid); if(gTeam[killerid] != 2) { WantedPoints[killerid] += 2; } //+ 2 wanted points if(SafeTime[playerid] <= 0) { if(gTeam[killerid] != gTeam[playerid]) { if(GetPlayerState(killerid) == 1) { PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2; } else { PlayerInfo[killerid][pKills]++; } PlayerInfo[playerid][pKills]--; } } /*if (strlen(deathreason) > 0)// patch { if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || gTeam[killerid] == gTeam[playerid])//med kill criminal { format(string, sizeof(string), ".: %s murdered %s. (%s) :.", killer, name, deathreason); } else { format(string, sizeof(string), ".: %s murdered %s. (%s) for $%d :.", killer, name, deathreason, slice); } } else { if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill || gTeam[killerid] == gTeam[playerid])) { format(string, sizeof(string), ".: %s murdered %s :.", killer, name); } else { format(string, sizeof(string), ".: %s murdered %s for $%d :.", killer, name, slice); } }*/ if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4)) { slice = 0; } if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill { slice = 0; } if (playercash > 0) { SafeGivePlayerMoney(playerid, -slice); } else { slice = slice+500; } //SafeGivePlayerMoney(killerid, slice); //GameTextForPlayer(playerid, dmessage, 5000, 2); PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0); if (((gTeam[killerid]) == 3) && reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (((gTeam[killerid]) == 3) && reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } } } else if (victimteam == 2) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); // Cop kill PlayerInfo[playerid][pKills]--; if (gTeam[killerid] == 2)//cops kill cop { //format(string,128,".: Officer %s murdered Officer %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); SafeGivePlayerMoney(killerid, -suecost); SafeGivePlayerMoney(playerid, suecost+100);//+100pays hospital bill } else { //format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason); } if (gTeam[killerid] >= 3) { WantedPoints[killerid] += 2; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } } if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0) { if(GetPlayerState(killerid) == 1) { PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2; } else { PlayerInfo[killerid][pKills]++; } WantedPoints[killerid]+=2; } //BroadCast(COLOR_RED, string); } } else if (victimteam == 3) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); // Civ kill if ((gTeam[killerid]) == 2)//cops kill civ { if(WantedLevel[playerid] < 1) { //format(string,128,".: Officer %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); SafeGivePlayerMoney(killerid, -suecost); SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill } } else { //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason); WantedPoints[killerid] += 2; } if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } //BroadCast(COLOR_RED, string); } } else if (victimteam == 1) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); // Civ kill if ((gTeam[killerid]) == 2)//cops kill civ { //format(string,128,".: Officer %s murdered Paramedic %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); SafeGivePlayerMoney(killerid, -suecost); SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill } else if ((gTeam[killerid]) == 1)//med kill civ { //format(string,128,".: Paramedic %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); SafeGivePlayerMoney(killerid, -suecost); SafeGivePlayerMoney(playerid, suecost+10);//+100pays hospital bill } else { //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason); } if (((gTeam[killerid]) == 4) && reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (((gTeam[killerid]) == 3) && reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } //BroadCast(COLOR_RED, string); } } if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2) { SetPlayerFree(playerid,killerid, "Got Killed"); } if (BusrouteEast[playerid][0] != 0 || BusrouteWest[playerid][0] != 0) { if (BusrouteEast[playerid][0] != 0) BusrouteEnd(playerid, BusrouteEast[playerid][1]); else if (BusrouteWest[playerid][0] != 0) BusrouteEnd(playerid, BusrouteWest[playerid][1]); else BusrouteEnd(playerid, 0); } if(FarmerVar[playerid] != 0) { FarmerVar[playerid] = 0; DisablePlayerCheckpoint(playerid); } if(DrugFarmerVar[playerid] != 0) { DrugFarmerVar[playerid] = 0; DisablePlayerCheckpoint(playerid); } if(SmugglerWork[playerid] != 0) { SmugglerWork[playerid] = 0; DisablePlayerCheckpoint(playerid); } killerid = INVALID_PLAYER_ID; SetRealMoney(playerid, ScriptMoney[playerid]); SetPlayerColor(playerid,0xBBBBBB00); SafeResetPlayerWeapons(playerid); return 1; }
  3. Cum ai vrea sa te ajutam? daca nu ne dai linia 133 din mysql.inc ?
  4. Cauta la functia payday [glow=red,2,300]ResetPlayerMoney[/glow] deoarece daca ti se reseteaza la 0 din cauza asta se intampla deoarece iti reseteaza bani sau daca nu poate ai [glow=red,2,300]SetPlayerMoney(playerid,0);[/glow]
  5. Nu cred ca iti va merge deoarece npc-urile se conecteaza prin functia 'onplayerconnect' iar apoi se respawneaza cu 'onplayerspawn' ai putea face sa se respawenze printr-o comanda atunci cand o aplici... (posibil, in proportie de 30% sa ai noroc, nu am incercat deci nu stiu)
  6. Moveobject,giveplayermoney(playerid,-taxa) Ce e asa greu? =)) sau tu vrei mura-n gura
  7. #define GetPlayerMoney JB_GetPlayerMoney #define ResetPlayerMoney JB_ResetPlayerMoney #define GivePlayerMoney JB_GivePlayerMoney #define PutPlayerInVehicle JB_PutPlayerInVehicle #define GivePlayerWeapon JB_GivePlayerWeapon #define SetPlayerPos JB_SetPlayerPos #define SetVehiclePos JB_SetVehiclePos le-ai definit?
  8. Cum adica nu iti porneste serverul? te referi nu iti apare pe clientul sa-mp sau nu ti se deschide consola server? (samp-server)
  9. Ai sistem de masini personale sau o restriectie de la id 179 in sus.
  10. BuBu

    Problema Server

    Cum adica 'serverul e deschis' iar pe clientul sa-mp iti arata ca e 'inchis' ? il tii pe PC sau pe dedicat? Daca ti-l arata ca e inchis pe client inseamna ca dedicatul tau nu e setat corect (linux/windwos) iar fisierele atesate nu sunt puse bine *plugins,scriptfiles* mai ales server.cfg si Gamemode-ul.
  11. Daca serverul se aprinde , scrii doar localhost la favorites si trebuie sa iti mearga. Daca nu iti merge inseamna ca nu e aprins serverul incearca sa iti dezactivezi/activezi FIREWALL cat la net cat si la antivirus.
  12. Seteazati benzina exista biz in joc daca ai GodFhater iar acolo ai /bizfee si iti setezi cat sa fie 1% - 1$ sa zicem... (100% = 100$)
  13. Sistemul tau de masini nu e bun deoarece nu iti salveaza datele , pe server apar dar in fisiere nu. Fati loadcars si savecars denou si sa mearga deoarece comanda ta e setata corect pCarKey = 999
  14. :)) nu inteleg ce vrei tu sa faci omule, daca ai facut /setadmin - cu ala iti setezi si 0 si 1 , 0 - down function 1 - up function
  15. Tu ai textdraw-uri sau 3 dtextlabel la case? e prima oara cand aud la cineva ca si-a pus textdraw la casa. Daca ai asa ca sa iti apara trebuie sa faci distanta si unde sa apara ma refer pe x,y,z sau pe un pick-up sau atunci cand da /buyhouse, etc..
  16. Daca tu nu stii sa citesti regulile forum-ului cum vrei sa te ajut, asa nu mai ofta aiurea. Exista topic special pentru 'cereri script-uri' -> http://www.sa-mp.ro/forum/index.php?topic=23242.0
  17. BuBu

    Ajutor /arme

    Problema e de la dialogid deoarece dialog-ul de la arme se corespund cu alte dialog-uri (aceleasi dialog-uri)
  18. 1. Textdraw: [glow=red,2,300]545.000000[/glow] - parca insemna dreapta/stanga pe linie [glow=red,2,300]18.000000[/glow] - inaltimea daca nu ma insel Solutie 1: Incearca sa modifici 545.000000 cu 515.000000 Solutie 2: Incearca sa modifici 545.000000 cu 575.000000 (solutia 2 o incerci daca nu mergea solutia 1) 2. Poftim tutorial cum faci factiune noua http://www.sa-mp.ro/forum/index.php?topic=9520.0
  19. BuBu

    Erorr problem

    In ce comanda sau in ce functie ai pus obiectele pe player?
  20. Poi si ce astepteti ma? definesteti GiveLog
  21. if(strcmp(cmd, "/announce", true) == 0 || strcmp(cmd, "/ann", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[80]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "{3C9DF6}Utilizare Comanda{FFFFFF}: (/ann)ouncement [text]"); return 1; } if (IsPlayerAdmin(playerid)) { format(string, sizeof(string), "* Anunt * Admin [%s]: %s", sendername, result); OOCOff(COLOR_ADMIN,string); printf("%s", string); } } return 1; } if(strcmp(cmd, "/cc", true) == 0) { if(IsPlayerConnected(playerid)) { if (IsPlayerAdmin(playerid)) { SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); SendClientMessageToAll(COLOR_GREEN, " "); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s a sters tot chat-ul.", sendername); BroadCast(COLOR_LIGHTRED,string); return 1; } else { SendClientMessage(playerid, COLOR_RED, "Ne pare rau, dar nu ai acces la aceasta comanda."); } } else { SendClientMessage(playerid, COLOR_RED, "Ne pare rau, dar trebuie sa fi logat pentru a utiliza aceasta comanda."); } return 1; } Toata treaba e de la [glow=red,2,300]IsPlayerAdmin(playerid)[/glow] care este adminul logat pe /rcon
  22. BuBu

    War

    Ce fel de war vrei? pe teritorii sau un war normal (arme full) si sa fie intro incapere si gata?
  23. Vrei /robbank?
  24. BuBu

    Ajutor

    Ce gamemode ai ) are comenzi ascunse deasta , trebuie sa cauti la onplayercommdtext toate comenzile la rand care ti se par suspecte. Poate sa fie si de la un FS daca ai poate ;)
  25. Mie imi place primul dar al doile facut de tine lol :| 3/5
×
×
  • 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.