Jump to content

Razvann

Membru
  • Posts

    252
  • Joined

  • Last visited

    Never

Everything posted by Razvann

  1. http://gtamap.delux-host.com/converter/
  2. mai invata putin basic scripting si apoi vino sa faci snippets. cand nu e in nicio conditie nu se dubleaza egal-ul, moderatorule. [pawn] new bool:CanUseTheCommand[MAX_PLAYERS] = 0; new bool:CheckPoint[MAX_PLAYERS]; public OnPlayerConnect(playerid) { CanUseTheCommand[playerid] = 0; return 1; } public OnPlayerSpawn(playerid) { CheckPoint[playerid] = 1; SetPlayerCheckpoint(playerid, x, y, z, size); return 1; } public OnPlayerEnterCheckpoint(playerid) { if(CheckPoint[playerid]) { CanUseTheCommand[playerid] = true; } return 1; } if(strcmp(cmd, "/comandata", true) == 0) { if(CanUseTheCommand[playerid]) { //orice aici } else { //mesaj daca nu poate folosi comanda } return 1; } [/pawn]
  3. cauta linia: [pawn]if(PlayerInfo[playerid][pReg] == 0)[/pawn] si vezi ca ai mai jos, ce level sa-i dea + cati bani
  4. irinel - mi-am dat seama dupa ce am postat codul ar3s - de pe ce sa se aprinda alarma? btw: http://pastebin.com/Xufqny3F motor - left ctrl lumini - h / capslock (depinde de pe ce aveti claxonul) trebuie sa aveti setarile default la taste, altfel o sa fie altele roach: si daca eu vreau sa-l ajut ai ceva impotriva? sau ce?
  5. http://pastebin.com/DdapswPd untested, imi zici daca nu-ti merge.
  6. si ce face daca el nu are stelutele incluse in gamemode? new sendername[ MAX_PLAYER_NAME ]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(WantedPoints[playerid] >= 1) { switch(reason) { case 0: format(str, 128, "HQ: Suspect: %s has left. Reason: Crash", sendername); case 1: format(str, 128, "HQ: Suspect: %s has left. Reason: /quit", sendername); } SendCopMessage(TEAM_BLUE_COLOR,str); }
  7. Razvann

    mysql prob

    nah, am pluginul lui g-stylezzz, inc-ul a_mysql, daca scot a_sampmysql da erori. mai incerc, wtf @laz: am scos si audio si la fel, dar daca le scot pe amandoua, da aceeasi eroare, sper ca nu e de la gamemode doh, e de la mine, 10x heker :)
  8. am instalat mysql, wampserver, merge totul ok, nicio eroare / warning la compilare la gamemode, dar: [00:15:39] Script[gamemodes/test.amx]: Run time error 19: "File or function is not found" [00:15:39] Number of vehicle models: 0 am toate inc-urile, pluginurile de la mysql (a_sampmysql.inc, a_mysql.inc, libmySQL.dll, mysql.dll - R5) *** Audio Plugin v0.4 by Incognito loaded *** [00:15:39] Loaded. [00:15:39] Loading plugin: mysql [00:15:39] > MySQL plugin R5 successfully loaded. [00:15:39] Loaded. [00:15:39] Loaded 2 plugins. [00:15:39] [00:15:39] Ban list [00:15:39] -------- [00:15:39] Loaded: samp.ban [00:15:39] [00:15:39] [00:15:39] Filter Scripts [00:15:39] --------------- [00:15:39] Loaded 0 filter scripts. [00:15:39] Script[gamemodes/saints.amx]: Run time error 19: "File or function is not found" [00:15:39] Number of vehicle models: 0 si da, am si functia main() in gamemode
  9. Razvann

    TextDraw

    cauta TextDrawSetString(Text:players, ... si pune codu'
  10. Razvann

    TextDraw

    wtf, 19 textdrawuri? anyway, pune tot codul si erorile.
  11. Razvann

    /ban

    [pawn] if(strcmp(cmd, "/ban", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pAdmin] > 0) { SendClientMessage(playerid, 0xFFFFFF, "Can't ban that player."); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; 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, "USAGE: /ban [playerid/PartOfName] [reason]"); return 1; } if(bantime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "Are you trying to ban this server?"); new year, month,day; getdate(year, month, day); format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); BanLog(string); format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); new playersip[256]; GetPlayerIp(giveplayerid,playersip, sizeof(playersip)); SendClientMessage(giveplayerid,COLOR_GREEN,"|___________[bAN INFO]___________|"); format(string, sizeof(string), "Numele tau este: %s.",giveplayer); SendClientMessage(giveplayerid, COLOR_RED, string); format(string, sizeof(string), "IP-ul tau este: %s.",playersip); SendClientMessage(giveplayerid, COLOR_RED, string); format(string, sizeof(string), "Ai fost banat de: %s.",sendername); SendClientMessage(giveplayerid, COLOR_RED, string); format(string, sizeof(string), "Motiv: %s.",(result)); SendClientMessage(giveplayerid, COLOR_RED, string); format(string, sizeof(string), "Data: %d/%d/%d",day,month,year); SendClientMessage(giveplayerid, COLOR_RED, string); SendClientMessage(giveplayerid,COLOR_GREEN,"|___________[bAN INFO]___________|"); bantime[playerid] = 1; SetTimerEx("bant", 10000, 0, "%d", playerid); PlayerInfo[giveplayerid][pLocked] = 1; Ban(giveplayerid); return 1; } }//not connected } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn]
  12. sterge proxdetector bla bla si ruleaza apoi. daca nu pica serverul inseamna ca e de la proxdetector
  13. deagle,m4,ak47 pentru ce iti trebuie tie minigun?
  14. e un script facut pt roleplay /facepalm
  15. unde Dumnezeu vezi tu ma ca e interzis ak47 si m4? ak47 id e 30 si m4 id e 31, omfg @lag stergeti postu'
  16. unde dumnezeu vezi tu ma ca e interzis ak47 si m4? ak47 id e 30 si m4 id e 31, omfg
  17. public OnVehicleStreamIn(vehicleid,forplayerid) { if(gCarLock[vehicleid] == 1) { LockCar(vehicleid); } else { gCarLock[vehicleid] = 0; } return 1; }
  18. Nu se poate face ce vrei tu, decat sa le setezi, sa le traduca automat nu se poate.
  19. S-ar putea sa dea warninguri : if(strcmp(cmdtext, "/RedBull",true,10)==0) ar trebui sa fie: if(strcmp(cmdtext, "/RedBull",true,8)==0)
  20. Ai prea multe icon-uri poate.. // probleme gf.
  21. new InDM[MAX_PLAYERS]; // Onplayerconnect InDM[playerid] = 0; // /m4 command InDM[playerid] = 1; // OnPlayerSpawn if(InDM[playerid] == 1) { SetPlayerPos(playerid,...); //etc return 1; } // /exit command InDM[playerid] = 0;
  22. Stii ce e aia ba? Mai taci din gura. Decompilare = DEamx, adica sa faci PWN din AMX,deci gata.
  23. Razvann

    Boxuri

    Folosesti mai intai td-ul cu forum si user apoi cel cu boxurile..
×
×
  • 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.