Jump to content
  • 0

Anti swear & Anti Caps Lock


Raffaello

Question

Dupa o cautare indelungata pe site-uri legate de SA:MP nu am reusit sa gasesc nici unde un Anti Swear cum am eu nevoie si mai ales un Anti Caps Lock .

Sa va explic cum sta treaba : am nevoie de un Anti Swear care sa faca urmatoru lucru :

Eu scriu in chat : "Esti un mare pro*t" si vreau ca in chat sa apara "Esti un mare *****"

Deci vreau doar acel cuvant din toata propozitia sa fie inlocui cu caracterul "*"

OBS: Am scris "pro*t" ca sa nu scriu prostii pe forum . Va dati seama ce am vrut sa spun.

Legat de Anti Caps Lock , vreau sa ma ajutati sa fac ca prima litera din propozitie sa fie litera mare , restu sa fie litere mici.

Eu scriu : "ma duC sa Imi cuMpar o CIocolaTa" si vreau sa apara "Ma duc sa imi cumpar o ciocolata"

Sper ca intelegeti ce vreau sa spun , si de ce am nevoie . Astept un raspuns.

Vreau sa imi explicati cat mai detailat pas cu pas ca nu vreau sa va bat la cap prea mult . Multumesc !

Your actions will always follow your beliefs.

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

Inca caut un Anti Swear , va rog ajutati-ma !!!

MoroJr , merge asta [tt]http://pastie.org/744779[/tt] dar asta face doar prima litera mare din litera mica. Eu vreau ca literele din propozitie sa fie toate mici indiferent cum scri . Cum am mai spus daca scriu : mA duC La MagAzin sa apara : Ma duc la magazin . Literele mari din propozitie sa se faca mici , si prima litera sa se faca litera mare.Te rog ajuta-ma stiu ca sti te rog zi-mi si mie cum sa fac te rog mult.

Astept raspuns te rog :(

Your actions will always follow your beliefs.

Link to comment
Share on other sites

Dupa o cautare indelungata pe site-uri legate de SA:MP nu am reusit sa gasesc nici unde un Anti Swear cum am eu nevoie si mai ales un Anti Caps Lock .

Deja la faza asta putzi...

Numai eu, fara sa vreau, am vazut vreo 20 - 30 de topicuri de-astea pe "site-uri legate de SA:MP"...

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

Am gasit Anti Swear , am rezolvat .

MoroJr tot asa face :( . Prima litera o face din mica mare dar restu le lasa mari. Daca scriu "aAAAAA" o face pe prima din "a" in "A" si apare "AAAAAA" si pe restu nu le face litere mici  :( Te rog mai updateaza odata si fami`o si mie :(

Deja la faza asta putzi...

Numai eu, fara sa vreau, am vazut vreo 20 - 30 de topicuri de-astea pe "site-uri legate de SA:MP"...

Daca ai gasit asa de multe de ce nu imi dai si mie un Anti Caps Lock ?  ::)

Your actions will always follow your beliefs.

Link to comment
Share on other sites

@ Cmg , vezi ca ai pus pastebin-ul meu in postul tau

@@ Ma copile , eu am testat si de mers merge bine. Daca tu ai pus OnPlayerText in OnPlayerText ( adica sa ai 2x de OnPlayerText ) inseamna ca nu ai ce cauta aici. Si probabil asta ai si facut

Am pus ultima varianta a scriptului. Oricum tu ai gresit ca nu i-l ai aranjat (sau nu stii) iar el a gresit din start ca nu l-a aranjat (indentat).

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

nu asta conteaza, conteaza cum e aranjat, acolo unde e pus.

indentation = identa?ie (zice nea' gogu' ) sau indentatie (tot el o spune) dar oricum nu "identitate" care inseamna cu totul alceva.

A indentat un cod, nu inseamna  sa-l "aranjezi" in PawnO si gata, a indentat un cod inseamna a-l aranja acolo unde este "postat", acolo unde este folosit/aratat/etc.

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By Tican Daniel Andrei
      Salutare, am venit cu o cerință ceva mai "imposibilă" din punctul ăsta de vedere. Am văzut recent pe o comunitate de SA:MP că aveau un fel de Script care bloca modurile Cleo (.cs) și fișierele .exe selectate de către serverul respectiv și pur și simplu lăsau jucătorii cu modpack descărcat de unde aveau ei pagina lor de moduri, lucrul ăsta s-ar putea face din script sau e ceva mai avansat și mai complicat ? 
      Dacă s-ar putea face astfel de script,mi-ați putea spune personal printr-un mesaj privat cât ar costa complexitatea unui script de genul acesta? Mulțumesc și seară plăcută vă doresc! 
    • By Quang Minh
      Is there any way to prevent cleo wallhack and nametag?
      I tried hiding my name but it didn't work
    • By Adolph
      salut, cum pot sa fac sa nu mai mearga sa te urci in masina tu ca owner daca e inchisa gen
      acum daca sunt owner de vehicul, pot intra fara sa apas N sau /lock. Ceea ce vreau e sa pot da inainte /lock ca sa o deschid si apoi sa ma urc, mi-a dat batai mari de cap si nu stiu ce sa ii fac, putin ajutor daca va rog ?
      CMD:lock(playerid, params[]) { new engine,lights,alarm,doors,bonnet,boot,objective; for(new v; v < MAX_PERSONAL_VEHICLES; v++) { if(CheckPlayerDistanceToVehicle(5.0, playerid, PlayerInfo[playerid][pCarID][v])) { if(PlayerInfo[playerid][pCarLock][v] == 1) { GetVehicleParamsEx(PlayerInfo[playerid][pCarID][v],engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(PlayerInfo[playerid][pCarID][v],engine,lights,alarm,0,bonnet,boot,objective); va_GameTextForPlayer(playerid, "~h~%s~n~~g~Unlocked", 5000, 3, aVehicleNames[PlayerInfo[playerid][pCarModel][v] - 400]); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); PlayerInfo[playerid][pCarLock][v] = 0; gCarLock[PlayerInfo[playerid][pCarID][v]] = 0; cUpdate(playerid, v, cLockx); return true; } else { GetVehicleParamsEx(PlayerInfo[playerid][pCarID][v],engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(PlayerInfo[playerid][pCarID][v],engine,lights,alarm,1,bonnet,boot,objective); SetVehicleParamsForPlayer(PlayerInfo[playerid][pCarID][v],playerid,0,0); va_GameTextForPlayer(playerid, "~h~%s~n~~r~Locked", 5000, 3, aVehicleNames[PlayerInfo[playerid][pCarModel][v] - 400]); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); PlayerInfo[playerid][pCarLock][v] = 1; gCarLock[PlayerInfo[playerid][pCarID][v]] = 1; cUpdate(playerid, v, cLockx); return true; } } else if(CheckPlayerDistanceToVehicle(5.0, playerid, HireCar[playerid])) { new carid = HireCar[playerid]; if(gCarLock[carid] == 0) { new vehicles = GetVehicleModel(carid) - 400; va_GameTextForPlayer(playerid, "~h~%s~n~~r~Locked", 5000, 3, aVehicleNames[vehicles]); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); gCarLock[carid] = 1; GetVehicleParamsEx(HireCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(HireCar[playerid],engine,lights,alarm,1,bonnet,boot,objective); return true; } else if(gCarLock[carid] == 1) { new vehicles = GetVehicleModel(carid) - 400; va_GameTextForPlayer(playerid, "~h~%s~n~~g~Unlocked", 5000, 3, aVehicleNames[vehicles]); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); gCarLock[carid] = 0; GetVehicleParamsEx(HireCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(HireCar[playerid],engine,lights,alarm,0,bonnet,boot,objective); return true; } } else if(CheckPlayerDistanceToVehicle(5.0, playerid, RentCar[playerid])) { new carid = RentCar[playerid]; if(gCarLock[carid] == 0) { GameTextForPlayer(playerid, "~h~rentcar~n~~r~locked", 5000, 3); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); gCarLock[carid] = 1; GetVehicleParamsEx(RentCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(RentCar[playerid],engine,lights,alarm,1,bonnet,boot,objective); return true; } else if(gCarLock[carid] == 1) { GameTextForPlayer(playerid, "~h~rentcar~n~~g~unlocked", 5000, 3); PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0); gCarLock[carid] = 0; GetVehicleParamsEx(RentCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(RentCar[playerid],engine,lights,alarm,0,bonnet,boot,objective); return true; } } } return true; }  
    • By VenoMarius
      ../modules/anti-cheats.pwn(1199) : error 017: undefined symbol "SetPlayerTimerEx_"
      ../modules/anti-cheats.pwn(1913) : error 017: undefined symbol "SetPlayerTimerEx_"
      ../modules/anti-cheats.pwn(3462) : error 017: undefined symbol "SetPlayerTimerEx_"
      ../modules/anticheats.pwn(18) : error 017: undefined symbol "FKicked"
      ../modules/anticheats.pwn(18) : warning 215: expression has no effect
      ../modules/anticheats.pwn(18) : error 001: expected token: ";", but found "]"
      ../modules/anticheats.pwn(18) : error 029: invalid expression, assumed zero
      ../modules/anticheats.pwn(18) : fatal error 107: too many error messages on one line
      Compilation aborted.
      Pawn compiler 3.10.8              Copyright (c) 1997-2006, ITB CompuPhase
       
      includes:
      #include "../modules/anti-cheats.pwn"
      #include "../modules/anticheats.pwn"
       
    • By VenoMarius
      Am o problema
      in anti troll .pwn scrie asa:
      /*
      OnPlayerCarTroll(playerid, vehicleid, trolledid, trolltype);
      Type 1: Teleporting between vehicles (can give cheaters chance to control other's players) (also lag cheat detected here).
      Type 2: Control other player's cars or spin/rotate (Done by checking the player's actual vehicle).
      Type 3: Fast kick/rotate or teleporting inside drivers. (detectd by position change)
      Type 4: Teleporting inside a vehicle illegally as a driver (without PutPlayerInVehicle or OnPlayerEnterVehicle).
      Type 5: Teleporting inside a vehicle illegally as a passenger (without PutPlayerInVehicle or OnPlayerEnterVehicle).
      Type 6: Remote kick a player by tping a vehicle inside of him. (Too fast the server reads it as an unoccupied vehicle).
      */
      si nu stiu ce sa fac
       eu il am asa :
      public OnPlayerCarTroll(playerid, vehicleid, trolledid, trolltype)
      {
          new KickString[80], cheatername[MAX_PLAYER_NAME]; // Kicking message and cheater's name
          GetPlayerName(playerid, cheatername, sizeof(cheatername));//Saving cheater's name in a string
       
          if(trolledid != INVALID_PLAYER_ID)// If the trolled person is valid
          {
              SendClientMessage(trolledid, -1, "You were trolled but the cheater was taken care of");//Inform him
              format(KickString, sizeof(KickString), "Server has kicked %s , reason: Trolling #%d vehicle %d player %d", cheatername, trolltype, vehicleid, trolledid);//Kick with a reasonable message
          }
       
          else format(KickString, sizeof(KickString), "Server has kicked %s , reason: Trolling #%d vehicle %d", cheatername, trolltype, vehicleid);//If no one was trolled kick the troller normally
       
          SendClientMessageToAll(-1, KickString);//Sending the finalized string
          Kick(playerid);//Kicking the cheater
       
          return 1;
      }
      si imi da error.
      Va rog
      Ma poate ajuta cnv ?
      :((
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.