[FilterScript] [FS]Admin Bot 7.1
#1

DELETE IT!
Reply
#2

So what exactly does it do?gives itself health and armor and just keeps doin ramps around over and over again?
And how can i use this because on my server i have to register and login to spawn.
Reply
#3

so change the command in the adminbot to /blogin or something :P
Reply
#4

One Question how Do I make It so I wont be able to use ramps? I dont wanna use the ramps in my server
Reply
#5

Quote:
Originally Posted by JustinB
One Question how Do I make It so I wont be able to use ramps? I dont wanna use the ramps in my server
delete this line
CreateObject(18045, 2145.7341, 621.9348, -2.4793, 0.0000, 0.0000, 0.0000);
CreateObject(980, 2148.0691, 622.3141, -2.7731, 0.0000, 0.0000, 270.0000);
CreateObject(1497, 2150.7195, 617.3950, -4.4584, 0.0000, 0.0000, 0.0000);
CreateObject(2047, 2138.3357, 620.3701, -2.8068, 0.0000, 0.0000, 90.0000);
CreateObject(2047, 2141.2249, 616.7316, -2.8672, 0.0000, 0.0000, 180.0000);
CreateObject(2047, 2139.3372, 616.7316, -2.8720, 0.0000, 0.0000, 180.0000);
CreateObject(2738, 2144.0212, 617.1321, -3.8686, 0.0000, 0.0000, 180.0000);
CreateObject(2700, 2143.7385, 616.7316, -1.6944, 0.0000, 0.0000, 90.0000);
CreateObject(2603, 2139.4929, 626.6632, -4.0109, 0.0000, 0.0000, 270.0000);
CreateObject(2603, 2139.6816, 618.1268, -4.0182, 0.0000, 0.0000, 90.0000);
CreateObject(2627, 2139.3108, 623.0800, -4.4707, 0.0000, 0.0000, 90.0000);
CreateObject(2521, 2144.0156, 617.2038, -4.4731, 0.0000, 0.0000, 180.0000);
CreateObject(2226, 2141.6265, 616.9212, -3.4890, 0.0000, 0.0000, 180.0000);
CreateObject(2136, 2143.8333, 626.7443, -4.4630, 0.0000, 0.0000, 0.0000);
CreateObject(2103, 2143.9705, 626.7836, -3.4358, 0.0000, 0.0000, 0.0000);
CreateObject(2100, 2146.4778, 616.6164, -4.4650, 0.0000, 0.0000, 180.0000);
CreateObject(2097, 2146.2373, 626.7803, -4.1639, 0.0000, 0.0000, 0.0000);
CreateObject(1828, 2143.8252, 622.4410, -4.4488, 0.0000, 0.0000, 0.0000);
CreateObject(1812, 2140.6658, 626.6936, -4.4763, 0.0000, 0.0000, 270.0000);
CreateObject(18059, 2148.0979, 620.4362, -4.0921, 0.0000, 0.0000, 270.0000);
CreateObject(949, 2148.6145, 620.4506, -3.1102, 0.0000, 0.0000, 0.0000);
CreateObject(949, 2148.6235, 623.5414, -3.0754, 0.0000, 0.0000, 0.0000);
CreateObject(949, 2148.6252, 626.5779, -3.1102, 0.0000, 0.0000, 0.0000);
CreateObject(949, 2148.6096, 617.3898, -3.1352, 0.0000, 0.0000, 0.0000);
or this one
forward Keys();
public Keys()
{
new keys, updown, leftright, playerid;
new Float, Float:y, Float:z, Float:angle;
for (playerid = 0; playerid < MAX_PLAYERS; playerid++) {
if (IsPlayerConnected(playerid)) {
GetPlayerKeys(playerid, keys, updown, leftright);
if (keys & KEY_ACTION && IsPlayerInAnyVehicle(playerid)) {
if (!keydown[playerid]) {
keydown[playerid] = true;
if (rampid[playerid] == -1) {
GetPlayerPos(playerid, x, y, z);
angle = GetXYInFrontOfPlayer(playerid, x, y, GetOptimumRampDistance(playerid));
switch (playerramptypes[playerid]) {
case 2:
{
angle -= 90.0;
if (angle < 0.0) angle += 360.0;
z += 0.5;
}
case 1:
{
z -= 0.5;
}
}
rampid[playerid] = CreateObject(ramptypes[playerramptypes[playerid]], x, y, z - 0.5, 0.0, 0.0, angle);
SetTimerEx("RemoveRamp", 2000, 0, "d", playerid);
}
}
} else keydown[playerid] = false;
}
}
return 1;
}
not sure i think ithe second one
Reply
#6

Lol k so I got ramps removed but how do I make it so it allows capital letters in chat? when Im running the script I cant use caps
Reply
#7

Quote:
Originally Posted by JustinB
Lol k so I got ramps removed but how do I make it so it allows capital letters in chat? when Im running the script I cant use caps
Remove this:

pawn Код:
SprawdzBluzgi(text[]){
    for(new i=0; i < strlen(text); i++) text[i] = tolower(text[i]);
    if(strfind(text, "kurwa", false) != -1) DisableWord("kurwa", text, false);
    if(strfind(text, "korwa", false) != -1) DisableWord("korwa", text, false);
    if(strfind(text, "huj", false) != -1) DisableWord("huj", text, false);
    if(strfind(text, "hoj", false) != -1) DisableWord("hoj", text, false);
    if(strfind(text, "jebac", false) != -1) DisableWord("jebac", text, false);
    if(strfind(text, "jebac", false) != -1) DisableWord("jebac", text, false);
    if(strfind(text, "pizda", false) != -1) DisableWord("pizda", text, false);
    if(strfind(text, "cipa", false) != -1) DisableWord("cipa", text, false);
    if(strfind(text, "cipo", false) != -1) DisableWord("cipo", text, false);
    if(strfind(text, "cipy", false) != -1) DisableWord("cipy", text, false);
    if(strfind(text, "pojeb", false) != -1) DisableWord("pojeb", text, false);
    if(strfind(text, "zjeb", false) != -1) DisableWord("zjeb", text, false);
    if(strfind(text, "jebany", false) != -1) DisableWord("jebany", text, false);
    if(strfind(text, "cwel", false) != -1) DisableWord("cwel", text, false);
    if(strfind(text, "cfel", false) != -1) DisableWord("cfel", text, false);
    if(strfind(text, "dziwka", false) != -1) DisableWord("dziwka", text, false);
    if(strfind(text, "spierdaj", false) != -1) DisableWord("spierdaj", text, false);
    if(strfind(text, "pierdol", false) != -1) DisableWord("pierdol", text, false);
    if(strfind(text, "szmata", false) != -1) DisableWord("szmata", text, false);
    if(strfind(text, "suka", false) != -1) DisableWord("suka", text, false);
    if(strfind(text, "zdzira", false) != -1) DisableWord("zdzira", text, false);
    if(strfind(text, "wpierdol", false) != -1) DisableWord("wpierdol", text, false);
    if(strfind(text, "wypierdalaj", false) != -1) DisableWord("wypierdalaj", text, false);
    if(strfind(text, "wypierdolic", false) != -1) DisableWord("wypierdolic", text, false);
    if(strfind(text, "jebaniec", false) != -1) DisableWord("jebaniec", text, false);
    if(strfind(text, "rozkurwie", false) != -1) DisableWord("rozkurwie", text, false);
    if(strfind(text, "rozkurwic", false) != -1) DisableWord("rozkurwic", text, false);
    return 0;
}

DisableWord(const badword[], text[], bool:type)
{
    for(new i=0; i<strlen(text); i++)
    if(strfind(text[i], badword, true) == 0)
    {
        for(new a=0; a<strlen(text); a++)
        {
            if(a >= i && a < i+strlen(badword) && type == false) text[a]='*';
            else if(a >= i && a < i+strlen(badword) && type == true) text[a]=' ';
        }
    }
}
And in OnPlayerText

pawn Код:
SprawdzBluzgi(text);
For delete Ramps:

OnGameModeInit
pawn Код:
SetTimer("Keys"         , 100    , true ) ;
pawn Код:
new playerramptypes[MAX_PLAYERS] = {4, ...};
new playerrampenable[MAX_PLAYERS];
new keydown[MAX_PLAYERS] = {false, ...};
new rampid[MAX_PLAYERS] = {-1, ...};

forward Keys();
public Keys()
{
    new keys, updown, leftright, playerid;
    new Float:x, Float:y, Float:z, Float:angle;
    for (playerid = 0; playerid < MAX_PLAYERS; playerid++) {
      if (IsPlayerConnected(playerid)) {
            GetPlayerKeys(playerid, keys, updown, leftright);
            if (keys & KEY_ACTION && IsPlayerInAnyVehicle(playerid)) {
                if (!keydown[playerid]) {
                    keydown[playerid] = true;
                    if (rampid[playerid] == -1) {
                      GetPlayerPos(playerid, x, y, z);
                      angle = GetXYInFrontOfPlayer(playerid, x, y, GetOptimumRampDistance(playerid));
                      switch (playerramptypes[playerid]) {
                            case 2:
                            {
                        angle -= 90.0;
                        if (angle < 0.0) angle += 360.0;
                        z += 0.5;
                        }
                        case 1:
                        {
                          z -= 0.5;
                        }
                      }
                      rampid[playerid] = CreateObject(ramptypes[playerramptypes[playerid]], x, y, z - 0.5, 0.0, 0.0, angle);
                      SetTimerEx("RemoveRamp", 2000, 0, "d", playerid);
                  }
              }
            } else keydown[playerid] = false;
        }
    }
    return 1;
}

new rampnames[6][] = {
    {"Normal ramp"},
  {"Paved ramp with pipes"},
  {"Wooden board placed on the box"},
  {"Water from the rock ramp"},
  {"Normal ramp Water"},
  {"Wide ramp Water"}
};
new ramptypes[] = {
    1503,
    1660,
    1245,
    1631,
    1632,
    1655,
};
in OnPlayerCommandText:

pawn Код:
if (strcmp("/setramp ", cmdtext, true, 9) == 0)
    {
        new ramp = strval(cmdtext[9]);
        if (ramp < 0 || ramp >= sizeof(ramptypes)) {
            SendClientMessage(playerid, COLOR_LIGHTRED, "Invalid ID ramp.");
        } else {
        if (playerramptypes[playerid] == -1){
            playerramptypes[playerid] = ramp;
                SendClientMessage(playerid, COLOR_ORANGE, "Have enabled the ramp! To disable, type: /rampoff");
                format(string, sizeof(string), "Ramp Type: %s (ID: %d)", rampnames[ramp], ramp);
                SendClientMessage(playerid, COLOR_GREEN, string);
            } else {
                playerramptypes[playerid] = ramp;
                format(string, sizeof(string), "Ramp has been changed to: %s (ID: %d)", rampnames[ramp], ramp);
                SendClientMessage(playerid, COLOR_GREEN, string);
            }
        }
      return 1;
    }
    if (strcmp("/rampoff", cmdtext, true) == 0)
    {
      if (playerramptypes[playerid] == -1){
        SendClientMessage(playerid, COLOR_GREEN, "Already turned off the ramp!");
        }else{
            playerramptypes[playerid] = -1;
            SendClientMessage(playerid, COLOR_ORANGE, "Turned off the ramp! To enable, type / setramp [0-5].");
        }
      return 1;
    }
pawn Код:
public OnFilterScriptExit()
{
    for (new i=0; i<GetMaxPlayers(); i++)
    {
        if (rampid[i] != -1) DestroyObject(rampid[i]);
    }
}

forward RemoveRamp(playerid);
public RemoveRamp(playerid)
{
    if (rampid[playerid] != -1) {
      DestroyObject(rampid[playerid]);
      rampid[playerid] = -1;
    }
    return 1;
}
OnPlayerConnect
pawn Код:
playerrampenable[playerid] = 1;
And..

pawn Код:
forward Float:GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance);
Float:GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
    new Float:a;
    GetPlayerPos(playerid, x, y, a);
    if (IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    else GetPlayerFacingAngle(playerid, a);
    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
    return a;
}

forward Float:GetOptimumRampDistance(playerid);
Float:GetOptimumRampDistance(playerid)
{
    new ping = GetPlayerPing(playerid), Float:dist;
    dist = floatpower(ping, 0.25);
    dist = dist*4.0;
    dist = dist+5.0;
    return dist;
}
Reply
#8

This is the first admin script without kick/ban
Reply
#9

the script looks nice but i having a problem, if i compile the file gives an error

C:\Users\wesley\Desktop\GTA SA\server+dialog\filterscripts\ABot7.1_ENG.pwn(5) : fatal error 100: cannot read from file: "dudb"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

if i delete this line it only keeps giving more errors, plz help
Reply
#10

lol never mind solved
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)