HELP Here !
#1

Hi! Can you please EDDIT script where cops can't rob.

pawn Код:
#include <a_samp>
#include <zcmd>

#define COLOR_LOCALMSG 0xEC5413AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_AQUA 0x00FFFFAA
#define COLOR_ADMINCMD 0xF97804FF
#define COLOR_ADMINDUTY 0x007E96F6
#define COLOR_NOTLOGGED 0x00000000
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_MONEYBAR 0x005800FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_DARKRED 0xCD000000
#define COLOR_ANTICHEAT 0xAA3333AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTBLUE2 0x0080FFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_LIGHTORANGE 0xFF8000FF
#define COLOR_DARKBROWN 0xB36C42FF
#define COLOR_MEDIUMBLUE 0x1ED5C7FF
#define COLOR_LIGHTYELLOW 0xE0E377AA
#define COLOR_LIGHTYELLOW2 0xE0EA64AA
#define COLOR_LIGHTYELLOW3 0xFF6347AA
#define COLOR_DARKPURPLE 0x5F56F8AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_OOC 0xE0FFFFAA
#define COLOR_NEWOOC 0x0080FFAA
#define COLOR_RED 0xFF0000FF
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Simple Robbing System by rumen98");
    print("--------------------------------------\n");
    Create3DTextLabel("/robbank",COLOR_WHITE,2309.6543,-8.5004,26.7422,15.0,0,1);
    Create3DTextLabel("/robammu",COLOR_WHITE,1367.3114,-1280.8257,13.5469,15.0,0,1);
    Create3DTextLabel("/robcityhall",COLOR_WHITE,1481.0194,-1771.5581,18.7958,15.0,0,1);
    Create3DTextLabel("/robgasstation",COLOR_WHITE,1929.1865,-1776.2770,13.1186,15.0,0,1);
    Create3DTextLabel("/robpizza",COLOR_WHITE,2104.8455,-1806.5627,13.1193,15.0,0,1);
    Create3DTextLabel("/robgym",COLOR_WHITE,2228.6638,-1722.2960,13.1336,15.0,0,1);
    Create3DTextLabel("/robatm",COLOR_WHITE,1919.0094,-1764.5574,13.1131,15.0,0,1);
    Create3DTextLabel("/robatm",COLOR_WHITE,2107.4668,-1789.6288,13.1291,15.0,0,1);
    Create3DTextLabel("/robatm",COLOR_WHITE,2476.2017,-1747.2950,13.1127,15.0,0,1);
    CreateObject(2942, 2475.4091796875, -1747.2602539063, 13.189774513245, 0.000000, 0.000000, 92.780029296875); //object (kmb_atm1) (1)
    CreateObject(2942, 2107.5859375, -1790.6883544922, 13.197587013245, 0.000000, 0.000000, 185.85498046875); //object (kmb_atm1) (2)
    CreateObject(2942, 1919.0524902344, -1765.8768310547, 13.189774513245, 0.000000, 0.000000, 179.10003662109); //object (kmb_atm1) (3)

    return 1;
}

new timer1,timer2,timer3,timer4,timer5,timer6,timer7;



new Robbank[MAX_PLAYERS];
new Robammu[MAX_PLAYERS];
new Robcityhall[MAX_PLAYERS];
new Robgasstation[MAX_PLAYERS];
new Robpizza[MAX_PLAYERS];
new Robgym[MAX_PLAYERS];
new Robatm[MAX_PLAYERS];

CMD:robbank(playerid, params[])
{
    if (Robbank[playerid] == 0 )
    if(IsPlayerInRangeOfPoint(playerid,2.0,2309.6543,-8.5004,26.7422))
    {
    SendClientMessage(playerid, COLOR_GREEN, "Tu apzodz banku!");
    Robbank[playerid] = 1;
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    timer1 = SetTimerEx("RobBank", 10000, false, "i", playerid);
    SetTimerEx("after1", 50000, false, "i", playerid);
    } else {
    SendClientMessage(playerid, COLOR_RED, "[ERROR:]Tagad tu nesi laupisanas zona!");
    }
    return 1;
}
forward RobBank(playerid);
public RobBank(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "Tu aplaupiji baku un tagad tev ir 3 zvaigznites!");
    TogglePlayerControllable(playerid,1);
    return 1;
}
CMD:robammu(playerid, params[])
{
    if (Robammu[playerid] == 0 )
    if(IsPlayerInRangeOfPoint(playerid,2.0,1367.3114,-1280.8257,13.5469))
    {
    SendClientMessage(playerid, COLOR_GREEN, "Jus sakat aplaupit Ierocu veikalu!");
    Robammu[playerid] = 1;
    timer2 = SetTimerEx("RobAmmu", 10000, false, "i", playerid);
    SetTimerEx("after2", 50000, false, "i", playerid);
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    } else {
    SendClientMessage(playerid, COLOR_RED, "[ERROR:]Tagad tu nesi laupisanas zona!");
    }
    return 1;
}
forward RobAmmu(playerid);
public RobAmmu(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "Tu aplaupiji Ierocu veikalu un tagad tev ir 3 zvaigznes!");
    TogglePlayerControllable(playerid,1);
    return 1;
}
CMD:robcityhall(playerid, params[])
{
    if (Robcityhall[playerid] == 0 )
    if(IsPlayerInRangeOfPoint(playerid,2.0,1481.0194,-1771.5581,18.7958))
    {
    SendClientMessage(playerid, COLOR_GREEN, "Jus sakat aplaupit domi!");
    Robcityhall[playerid] = 1;
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    timer3 = SetTimerEx("Robcity", 10000, false, "i", playerid);
    SetTimerEx("after3", 50000, false, "i", playerid);
    } else {
    SendClientMessage(playerid, COLOR_RED, "[ERROR:]Tagad tu nesi laupisanas zona!");
    }
    return 1;
}
forward Robcity(playerid);
public Robcity(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "Par Domes aplaupisanu jums tagad ir 3 zvaigznes!");
    TogglePlayerControllable(playerid,1);
    return 1;
  }
CMD:robgasstation(playerid, params[])
{
    if (Robgasstation[playerid] == 0 )
    if(IsPlayerInRangeOfPoint(playerid,2.0,1929.1865,-1776.2770,13.1186))
    {
    SendClientMessage(playerid, COLOR_GREEN, "Jus sakat aplaupit uzpildesstaciju!");
    Robgasstation[playerid] = 1;
    timer4 = SetTimerEx("Robgas", 10000, false, "i", playerid);
    SetTimerEx("after4", 50000, false, "i", playerid);
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    } else {
    SendClientMessage(playerid, COLOR_RED, "[ERROR:]Tagad tu nesi laupisanas zona!");
    }
    return 1;
}
forward Robgas(playerid);
public Robgas(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "Jus aplaupijas uzpildesstaciju un tagad jums ir  3 zvaigznes!");
    TogglePlayerControllable(playerid,1);
    return 1;
  }
CMD:robpizza(playerid, params[])
{
    if (Robpizza[playerid] == 0 )
    if(IsPlayerInRangeOfPoint(playerid,2.0,2104.8455,-1806.5627,13.1193))
    {
    SendClientMessage(playerid, COLOR_GREEN, "Jus aplaupijat piceriju!");
    Robpizza[playerid] = 1;
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    timer5 = SetTimerEx("RobPizza", 10000, false, "i", playerid);
    SetTimerEx("after5", 50000, false, "i", playerid);
    } else {
    SendClientMessage(playerid, COLOR_RED, "[ERROR:]Tagad tu nesi laupisanas zona!");
    }
    return 1;
}
forward RobPizza(playerid);
public RobPizza(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "Jus aplaupijat piceriju un tagad jums ir 3 zvaigznes!");
    TogglePlayerControllable(playerid,1);
    return 1;
  }
CMD:robgym(playerid, params[])
{
    if (Robgym[playerid] == 0 )
    if(IsPlayerInRangeOfPoint(playerid,2.0,2228.6638,-1722.2960,13.1336))
    {
    SendClientMessage(playerid, COLOR_GREEN, "Jus sakat aplaupit trenninzali!");
    Robgym[playerid] = 1;
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    timer6 = SetTimerEx("RobGym", 10000, false, "i", playerid);
    SetTimerEx("after6", 50000, false, "i", playerid);
    } else {
    SendClientMessage(playerid, COLOR_RED, "[ERROR:]Tagad tu nesi laupisanas zona!");
    }
    return 1;
}
forward RobGym(playerid);
public RobGym(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "Jus aplaupijat trenninzali un tagad jums ir 3 zvaigznes!");
    TogglePlayerControllable(playerid,1);
    return 1;
  }
CMD:robatm(playerid, params[])
{
    if (Robatm[playerid] == 0 )
    if(IsPlayerInRangeOfPoint(playerid,2.0,1919.0094,-1764.5574,13.1131) || IsPlayerInRangeOfPoint(playerid,2.0,2476.2017,-1747.2950,13.1127) || IsPlayerInRangeOfPoint(playerid,2.0,2107.4668,-1789.6288,13.1291))
    {
    SendClientMessage(playerid, COLOR_GREEN, "Jus sakat aplaupit ATM!");
    Robatm[playerid] = 1;
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    timer7 = SetTimerEx("RobAtm", 10000, false, "i", playerid);
    SetTimerEx("after7", 50000, false, "i", playerid);
    } else {
    SendClientMessage(playerid, COLOR_RED, "[ERROR:]Tagad tu nesi laupisanas zona!");
    }
    return 1;
}

forward RobAtm(playerid);
public RobAtm(playerid)
{
    if(GetPlayerWeapon(playerid) == 0) GivePlayerMoney(playerid,20);
    if(GetPlayerWeapon(playerid) == 22) GivePlayerMoney(playerid,380);
    if(GetPlayerWeapon(playerid) == 23) GivePlayerMoney(playerid,640);
    if(GetPlayerWeapon(playerid) == 24) GivePlayerMoney(playerid,800);
    if(GetPlayerWeapon(playerid) == 25) GivePlayerMoney(playerid,1000);
    if(GetPlayerWeapon(playerid) == 26) GivePlayerMoney(playerid,1450);
    if(GetPlayerWeapon(playerid) == 27) GivePlayerMoney(playerid,2000);
    if(GetPlayerWeapon(playerid) == 28) GivePlayerMoney(playerid,2300);
    if(GetPlayerWeapon(playerid) == 29) GivePlayerMoney(playerid,2600);
    if(GetPlayerWeapon(playerid) == 30) GivePlayerMoney(playerid,4200);
    if(GetPlayerWeapon(playerid) == 31) GivePlayerMoney(playerid,5100);
    if(GetPlayerWeapon(playerid) == 32) GivePlayerMoney(playerid,3000);
    if(GetPlayerWeapon(playerid) == 33) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 34) GivePlayerMoney(playerid,6000);
    if(GetPlayerWeapon(playerid) == 35) GivePlayerMoney(playerid,8500);
    if(GetPlayerWeapon(playerid) == 36) GivePlayerMoney(playerid,10000);
    SendClientMessage(playerid, COLOR_GREEN, "Jus aplaupijat ATM un tagad jums ir 3 zvaigznes!");
    TogglePlayerControllable(playerid,1);
    return 1;
  }
forward after1(playerid);
public after1(playerid)
{
    Robbank[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "Jus varat tagad aplaupit banku!");
    return 1;
  }
forward after2(playerid);
public after2(playerid)
{
    Robammu[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "Jus varat tagad aplaupit Ierocu veikalu!");
    return 1;
  }
forward after3(playerid);
public after3(playerid)
{
    Robcityhall[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "Jus varat tagad atplaupit Domi!");
    return 1;
  }
forward after4(playerid);
public after4(playerid)
{
    Robgasstation[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "Jus varat tagad aplaupit uzpildesstaciju !");
    return 1;
  }
forward after5(playerid);
public after5(playerid)
{
    Robpizza[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "Jus varat tagad aplaupit piceriju!");
    return 1;
  }
forward after6(playerid);
public after6(playerid)
{
    Robgym[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "Jus tagad varat aplaupit trenninzali!");
    return 1;
  }
forward after7(playerid);
public after7(playerid)
{
    Robatm[playerid] = 0;
    SendClientMessage(playerid, COLOR_RED, "Jus varat tagad aplaupit ATM!");
    return 1;
  }

public OnPlayerDeath(playerid, killerid, reason)
{
    KillTimer(timer1);
    KillTimer(timer2);
    KillTimer(timer3);
    KillTimer(timer4);
    KillTimer(timer5);
    KillTimer(timer6);
    KillTimer(timer7);
    return 1;
}
CMD:robhelp(playerid, params[])
{
    SendClientMessage(playerid, COLOR_GREEN, "Laupisanas systema");
    SendClientMessage(playerid, COLOR_GREEN, "Jus varat aplaupit katru 30 sekundi");
    SendClientMessage(playerid, COLOR_GREEN, "CMDS:");
    SendClientMessage(playerid, COLOR_GREEN, "/robbank , /robammu , /robcity , /robgas");
    SendClientMessage(playerid, COLOR_GREEN, "/robpizza , /robgym , /robatm");
    return 1;
}
Reply
#2

whats your cop variable like fleader or fmember show your code where you define your cop or simple post your arrest command
Reply
#3

Hi do you have a variable for cop to check if he is a cop? It's like IsCop[MAX_PLAYERS];

EDIT: Check under your gamemode.
Reply
#4

pawn Код:
CMD:robammu(playerid, params[])
{
    new skin = GetPlayerSkin(playerid); //Get player's skin (cops skins) https://sampwiki.blast.hk/wiki/Skins:All
    if(skin == 265 || skin == 266 || skin == 267 || skin == 284 || skin == 285 || skin == 286 || skin == 287 || skin 288) return 1; //cops
    if (Robammu[playerid] == 0 )
    if(IsPlayerInRangeOfPoint(playerid,2.0,1367.3114,-1280.8257,13.5469))
    {
    SendClientMessage(playerid, COLOR_GREEN, "Jus sakat aplaupit Ierocu veikalu!");
    Robammu[playerid] = 1;
    timer2 = SetTimerEx("RobAmmu", 10000, false, "i", playerid);
    SetTimerEx("after2", 50000, false, "i", playerid);
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
    } else {
    SendClientMessage(playerid, COLOR_RED, "[ERROR:]Tagad tu nesi laupisanas zona!");
    }
    return 1;
}
Do the same for the rest of your robbing command.
Reply
#5

Did you all forget about code indentation!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)