Jump to content

ToX1c

Membru
  • Posts

    245
  • Joined

  • Last visited

    Never

Everything posted by ToX1c

  1. Salut am si eu o intrebare daca puteti sa ma ajutati cum fac la masini personale cand cineva vrea sa se urce in masina la mine si da enter sa nu poata sa se urce si sa ii zica un mesaj acolo..eu vreau atunci cand acel jucat da enter sa il dea inapoi sa nu-l lase sa se urce.Multumesc
  2. Am rezolvat puteti da T.C
  3. Tot nu merge .. Da imi apare la cont Spawn=2 si tot nu merge.. if(HireCar[playerid] != 299) { gLastDriver[HireCar[playerid]] = 300; gCarLock[HireCar[playerid]] = 0; UnLockCar(HireCar[playerid]); } if (gLastCar[playerid] > 0) { gLastDriver[gLastCar[playerid]] = 300; if(PlayerInfo[playerid][pPhousekey] != gLastCar[playerid]-1) { gCarLock[gLastCar[playerid]] = 0; UnLockCar(gLastCar[playerid]); } } if(PlayerInfo[playerid][pSpawn] == 1) { SchoolSpawn[playerid] = 0; } if(PlayerInfo[playerid][pSpawn] == 2) { SchoolSpawn[playerid] = 1; }
  4. Tot nu merge am facut ce ai zis si tot nu merge... if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) //Driving/Flying School spawn { if(SchoolSpawn[playerid] == 0) { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, -2032.6810,-117.4816,1035.1719); SetPlayerFacingAngle(playerid, 275.1114); SetPlayerInterior(playerid,3); PlayerInfo[playerid][pInt] = 3; } else if(SchoolSpawn[playerid] == 1) { SetPlayerToTeamColor(playerid); SetPlayerPos(playerid, 2050.9392,-1901.1844,13.9121); SetPlayerFacingAngle(playerid, 4.6505); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } return 1; } if(PlayerInfo[playerid][pSpawn] == 1) { SchoolSpawn[playerid] = 0; } if(PlayerInfo[playerid][pSpawn] == 2) { SchoolSpawn[playerid] = 1; }
  5. Pai tocmai aia e problema ca nuj cum sa fac sa se salveze..
  6. Ma ajuta cineva va rog?
  7. Salut am si eu o mare problema la comanda /factionspawn cand sunt pe sv si dau /factionspawn LS si dau respawn totul merge bine , cand dau restart la server nu ma da in LS ma da in SF..Ce pot sa fac cand dau /factionspawn LS si sting serverul sa ma dea tot in LS. 2.Cum fac la /factionspawn sa pun la mai multe factiunii. de ex sa poata sa dea si medicii /factionspawn LS/SF.Multumesc if (strcmp("/factionspawn", cmdtext, true,11) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /factionspawn [SF/LS]"); return 1; } if(strcmp(x_nr,"SF",true) == 0) { SchoolSpawn[playerid] = 0; SendClientMessage(playerid, COLOR_WHITE, "Spawn-ul tau a fost setat in SF"); return 1; } else if(strcmp(x_nr,"LS",true) == 0) { SchoolSpawn[playerid] = 1; SendClientMessage(playerid, COLOR_WHITE, "Spawn-ul tau a fost setat in LS"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Nu faci parte din School Instructor !"); } } return 1; }
  8. ToX1c

    [GF/RP] Parola

    Am rezolvat .Ms
  9. ToX1c

    [GF/RP] Parola

    Am pus DIALOG_STYLE_PASSWORD si imi da asta? ma ajuta cineva? C:\Documents and Settings\Ionut\Desktop\GameSx 0.3d\gamemodes\gxb.pwn(5308) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD" C:\Documents and Settings\Ionut\Desktop\GameSx 0.3d\gamemodes\gxb.pwn(5317) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD" C:\Documents and Settings\Ionut\Desktop\GameSx 0.3d\gamemodes\gxb.pwn(5645) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD" C:\Documents and Settings\Ionut\Desktop\GameSx 0.3d\gamemodes\gxb.pwn(10555) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD" C:\Documents and Settings\Ionut\Desktop\GameSx 0.3d\gamemodes\gxb.pwn(10575) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD" C:\Documents and Settings\Ionut\Desktop\GameSx 0.3d\gamemodes\gxb.pwn(10580) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD" C:\Documents and Settings\Ionut\Desktop\GameSx 0.3d\gamemodes\gxb.pwn(10604) : error 017: undefined symbol "DIALOG_STYLE_PASSWORD" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Errors.
  10. Salut cum fac si eu cand cineva se logheaza sau se inregistreaza cand scrie parola sa apara cu puncte nu sa apara parola..
  11. Salut am si eu o problema mare cu /clear cand un politist vrea sa dea /clear din locul de unde se da nu face nimic..nu zice nimic,nu ii scoate wantedul.. if(strcmp(cmd, "/clear", true) == 0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] == 2 || PlayerInfo[playerid][pRank] >= 2) { if (!PlayerToPoint(3.0, playerid, 253.9216,69.4969,1003.6406)) { SendClientMessage(playerid, COLOR_GRAD2, "You are to not inside the Police Station!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /clear [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Clear yourself!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* I-ai sters recordurile si gradul de urmarire lui %s.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Ofiterul %s ti-a sters recordurile si gradul de urmarire.", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Ofiterul %s i-a sters recordurile si gradul de urmarire lui %s.",sendername, giveplayer); SendTeamMessage(2, 0x01FC7EFF, string); SetPlayerWantedLevel(giveplayerid, 0); WantedPoints[giveplayerid] = 0; WantedLevel[giveplayerid] = 0; ClearCrime(giveplayerid); if(gTeam[giveplayerid]==4) { gTeam[giveplayerid] = 3; SetPlayerToTeamColor(giveplayerid); } } } else { SendClientMessage(playerid, COLOR_GREY, "Invalid ID/Name!"); } } else { SendClientMessage(playerid, COLOR_GREY, "You are not an Cop / FBI / National Guard!"); } }//not connected return 1; } 2.Ati vazut cand urcati pe star tower eu o parasuta si cand te duci la ea iti da parasuta , cum fac sa-mi dea si mie parasuta pe severul meu , la mine cand ma duc nu imi da nimic.
  12. Salut care imi da si mie comanda pentru caciula pentru mos craciun.Multumesc
  13. ToX1c

    New year 0.3c

    Salut imi poti spune si mie te rog de unde iau si eu acel script pentru caciula de mos craciun?
  14. ToX1c

    Key

    Salut cum fac si eu sa apara parola in nume.ini la key sa apara parola care a puso , la mine apare alte litere de ex asa mctiŠ…‡� cum fac va rog spuneti-mi...
  15. Mai am o problema am baga in masini.cfg niste masini si nu imi apar cand urc in ele sa le cumpar... 522,1803.256713,-1084.234130,23.532499,2.256200,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1799.177734,-1083.929199,23.532800,358.459991,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1793.936157,-1083.941650,23.540700,1.573099,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1789.537353,-1084.696289,23.540500,359.671203,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1785.409545,-1084.899658,23.540199,359.177001,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1780.964111,-1084.919799,23.533199,359.543090,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1776.374267,-1084.735961,23.534900,357.156585,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1771.653442,-1084.552612,23.539400,358.059295,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1767.580200,-1084.039794,23.523199,357.017089,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1762.902465,-1083.794433,23.523599,357.166412,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1758.274658,-1084.174072,23.538700,356.982910,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1753.596801,-1084.464843,23.530700,359.792388,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1748.965087,-1084.262573,23.523099,355.239013,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1744.795288,-1084.489501,23.523000,1.412299,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1740.127807,-1084.581787,23.530700,3.141400,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1735.779052,-1084.438354,23.523199,352.884887,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1730.942382,-1084.202758,23.522699,0.880299,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1726.507690,-1083.823852,23.489599,1.417899,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1788.613647,-1071.157714,23.534999,178.166397,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1784.459960,-1070.485229,23.531000,182.556198,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1780.165649,-1070.869995,23.538400,179.543197,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1775.502197,-1071.679809,23.525899,181.703094,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1770.982910,-1070.255249,23.539400,182.634994,2,0,Dealership,NRG,500000,G,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 522,1624.228027,-1049.201782,23.898437,1.000000,1,1,Dealership,NRG-500,50,ForSale,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1
  16. Si asta unde o adaug? SendRconCommand("loadfs carownership"); asa am in junkbuster public OnGameModeInit() { if(!CallLocalFunction("JB_OnGameModeInit","")) { JB_Log("[WARNING!]"); JB_Log("JunkBuster is not used in gamemode or OnGameModeInit returns 0."); JB_Log("Make sure you use JunkBuster.inc in your gamemode. If you want to"); JB_Log("use JunkBuster in filterscripts, too, include JunkBusterFS.inc in"); JB_Log("your filterscript."); JB_Log("It's recommended to include JunkBuster.inc in your gamemode"); } dini_Remove(BAD_RCON_LOGIN_FILE); dini_Create(BAD_RCON_LOGIN_FILE); ConfigJunkBuster(); SetTimer("JunkBuster",1000,true); SetTimer("GlobalUpdate",60*1000*4,true);// Every 4 minutes SetTimer("SpamUpdate",3500,true); SetTimer("TempBanUpdate",1000*60*60,true);// Every hour if(JB_Variables[WARN_PLAYERS]) SendRconCommand("mapname JunkBuster Anti-Cheat"); JB_Log("JunkBuster has successfully been loaded."); SendRconCommand("loadfs carownership"); return 1; } public OnGameModeExit() { SaveIpBans(); SaveTempBans(); return CallLocalFunction("JB_OnGameModeExit",""); }
  17. Ma ajuta cineva? la problema asta? C:\Documents and Settings\FANE\Desktop\Mex\gamemodes\xs.pwn(36757) : error 021: symbol already defined: "JB_OnGameModeExit" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. am adaugat asta la fs gm-ului si imi da eroarea de mai sus public OnGameModeExit() { SendRconCommand("unloadfs carownership"); return 1; } Si cand intru in orice masina dupa server imi zice sa dau /v buy , ajutati-ma va rog
  18. Salut am facut niste dialoguri pentru inregistrare si am reusit sa fac pentru masculin femini , si varsta , si cand am facut pentru spawn ls sau sf nu imi apare dialogul ma poate ajuta cineva? if(dialogid == INR) { if(response) { ShowPlayerDialog(playerid, INR+1, DIALOG_STYLE_INPUT, "Gen", "Scrie cati ani ai", "Ok", "Cancel"); SendClientMessage(playerid, COLOR_YELLOW,"Bine.Deci ai ales sexul Masculin."); PlayerInfo[playerid][pSex] = 1; RegistrationStep[playerid] = 2; } else { ShowPlayerDialog(playerid, INR+1, DIALOG_STYLE_INPUT, "Gen", "Scrie cati ani ai", "Ok", "Cancel"); SendClientMessage(playerid, COLOR_YELLOW,"Bine.Deci ai ales sexul Feminin."); PlayerInfo[playerid][pSex] = 2; RegistrationStep[playerid] = 2; } return 0; } if(dialogid == INR+1) // Ani Hai Lushi Hai Lushi { if(response) { if(strlen(inputtext)) { if(!IsNumeric(inputtext))return ShowPlayerDialog(playerid, INR+1, DIALOG_STYLE_INPUT, "Varsta", "Te rog scrie cati ani ai:", "Ok", "Cancel"); new agestring[128]; PlayerInfo[playerid][pAge] = strval(inputtext); RegistrationStep[playerid] = 3; format(agestring,sizeof(agestring),"Ok,deci ai %d ani.",PlayerInfo[playerid][pAge]); SendClientMessage(playerid, COLOR_YELLOW, agestring); } } else //daca a dat click pe celalt buton { SendClientMessage(playerid,COLOR_YELLOW,"Trebuie sa scri cati ani ai.Te rugam reconecteazate."); Ban(playerid); } return 1; } if(dialogid == INR+5) { if(response) { if(listitem==6) // 14 { ShowPlayerDialog(playerid, INR+5, DIALOG_STYLE_LIST, "SpawnOras", "LosSantos\nSanFierro", "Ok", "Cancel"); SendClientMessage(playerid, COLOR_YELLOW, "Ok, deci ai ales orasul San Fierro acum cand vei muri de acolo vei incepe"); SendClientMessage(playerid, COLOR_YELLOW,"Acum urmeaza un tutorial.Te rog sa fi atent pentru a evita intrebarile"); PlayerInfo[playerid][pOrigin] = 1; RegistrationStep[playerid] = 0; TutTime[playerid] = 1; } if(listitem==7) // 14 { ShowPlayerDialog(playerid, INR+5, DIALOG_STYLE_LIST, "SpawnOras", "LosSantos\nSanFierro", "Ok", "Cancel"); SendClientMessage(playerid, COLOR_YELLOW, "Ok, deci ai ales orasul Los Santos acum cand vei muri de acolo vei incepe"); SendClientMessage(playerid, COLOR_YELLOW,"Acum urmeaza un tutorial.Te rog sa fi atent pentru a evita intrebarile"); PlayerInfo[playerid][pOrigin] = 2; RegistrationStep[playerid] = 0; TutTime[playerid] = 1; } } else { SendClientMessage(playerid, COLOR_LIGHTRED,"Trebuia sa alegi un spawn.Te rugam reconecteazate"); Ban(playerid); } return 1; } Aceasta cu spawn ls sau sf nu imi apare dialog if(dialogid == INR+5) { if(response) { if(listitem==6) // 14 { ShowPlayerDialog(playerid, INR+5, DIALOG_STYLE_LIST, "SpawnOras", "LosSantos\nSanFierro", "Ok", "Cancel"); SendClientMessage(playerid, COLOR_YELLOW, "Ok, deci ai ales orasul San Fierro acum cand vei muri de acolo vei incepe"); SendClientMessage(playerid, COLOR_YELLOW,"Acum urmeaza un tutorial.Te rog sa fi atent pentru a evita intrebarile"); PlayerInfo[playerid][pOrigin] = 1; RegistrationStep[playerid] = 0; TutTime[playerid] = 1; } if(listitem==7) // 14 { ShowPlayerDialog(playerid, INR+5, DIALOG_STYLE_LIST, "SpawnOras", "LosSantos\nSanFierro", "Ok", "Cancel"); SendClientMessage(playerid, COLOR_YELLOW, "Ok, deci ai ales orasul Los Santos acum cand vei muri de acolo vei incepe"); SendClientMessage(playerid, COLOR_YELLOW,"Acum urmeaza un tutorial.Te rog sa fi atent pentru a evita intrebarile"); PlayerInfo[playerid][pOrigin] = 2; RegistrationStep[playerid] = 0; TutTime[playerid] = 1; } } else { SendClientMessage(playerid, COLOR_LIGHTRED,"Trebuia sa alegi un spawn.Te rugam reconecteazate"); Ban(playerid); } return 1; }
  19. ToX1c

    Problema

    Care ma ajuta si pe mine sa fac 3 comenzi doar pentru politisti de rank 5? #include <a_samp> #include <SpikeStrip> strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; } public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256]; new idx; cmd = strtok(cmdtext, idx); if (strcmp(cmd,"/createstrip",true) == 0) { new Float:plocx,Float:plocy,Float:plocz,Float:ploca; GetPlayerPos(playerid, plocx, plocy, plocz); GetPlayerFacingAngle(playerid,ploca); CreateStrip(plocx,plocy,plocz,ploca); return 1; } else if (strcmp(cmd,"/removestrip",true) == 0) { DeleteClosestStrip(playerid); return 1; } else if (strcmp(cmd,"/removeallstrip",true) == 0) { DeleteAllStrip(); return 1; } return 0; }
  20. Salut am si eu o intrebare nu merge sa bagi comanda /park si sa isi parcheze playerii masini oriunde?
  21. ToX1c

    Auto AFK

    Ma ajuta cineva?
  22. ToX1c

    Auto AFK

    Am facut asa si nu merge nu se pune afk si cu , culoare neagra // By Hunter // Please do not remove the credits #include <a_samp> #define FILTERSCRIPT #define COLOR_AFK 0x5A5454FF new afk[MAX_PLAYERS]; new afktime = 1000;//10 mins new afktimer; new Float:AFKPos[MAX_PLAYERS][6]; new invafk[MAX_PLAYERS]; forward AutoAFK(); public OnFilterScriptInit() { printf("\n--------------------------------------"); printf("-------- AFK sistem by Hunter --------"); printf("--------------------------------------\n"); afktimer = SetTimer("AutoAFK", afktime, 1); return 1; } public OnFilterScriptExit() { KillTimer(afktimer); return 1; } public OnPlayerConnect(playerid) { afk[playerid] = 0; invafk[playerid] = 0; return 1; } public OnRconCommand(cmd[]) { new string[256]; if (strcmp("/kickallafk", cmd, true) == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { if(afk[i] == 1 || invafk[i] == 1) { new name[128]; GetPlayerName(i,name,128); format(string,256, "%s has kicked all AFK players.",name); SendClientMessage(i,0xFF6347AA,string); printf(string); Kick(i); } } return 1; } return 0; } public AutoAFK() { for(new i = 0; i < MAX_PLAYERS; i++) { GetPlayerPos(i, AFKPos[i][0], AFKPos[i][1], AFKPos[i][2]); AFKPos[i][3] = AFKPos[i][0]; AFKPos[i][4] = AFKPos[i][1]; AFKPos[i][5] = AFKPos[i][2]; if(AFKPos[i][0] == AFKPos[i][3] && AFKPos[i][1] == AFKPos[i][4] && AFKPos[i][2] == AFKPos[i][5] && afk[i] == 0) { SetPlayerColor(i,COLOR_AFK); afk[i] = 1; } else if(AFKPos[i][0] != AFKPos[i][3] && AFKPos[i][1] != AFKPos[i][4] && AFKPos[i][2] != AFKPos[i][5] && afk[i] == 1) { while (afk[i] == 0) { new color = GetPlayerColor(i); SetPlayerColor(i,color); } afk[i] = 0; } } }
  23. ToX1c

    Auto AFK

    Pai si cum fac sterg comenzile ? si las doar celelante , k nu vreau cu , comenzi
  24. ToX1c

    Auto AFK

    Da-mi ma u daca ai gasit eu caut de 2 luni si nu gasesc..u te referi la altceva cu , comenzi!!
  25. ToX1c

    Auto AFK

    Salut care ma ajuta si pe mine cu un sistem auto afk adica cand dai esc sau iesi in bara sa se schimbe culoare in negru si cand intri in joc sa-ti revina culoarea.Multumesc!!
×
×
  • 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.