Jump to content

Comenzi noi pentru factiuni


radiKal

Recommended Posts

Comenzi RP pentru factiuni


Departamente:

Comenzi:
• /drugtest - Cu aceasta comanda un politist poate vedea daca suspectul a consumat droguri.
Codul:
if (strcmp(cmd, "/drugtest", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (IsACop(playerid))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /drugtest [playerid/PartOfName]");
                    return 1;
                }
                 giveplayerid = ReturnUser(tmp);
                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 3)
                        {
                            if(PlayerStoned[playerid] >= 1)
                            {
                                format(string, sizeof(string), "* %s grabs their drug tester and puts the tube into %s's mouth.", sendername ,giveplayer);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Drug Test Result: Intoxicated **");
                                GameTextForPlayer(playerid,"~w~This player is~n~~r~High", 8000, 1);
                                return 1;
                            }
                               else
                               {
                                format(string, sizeof(string), "* %s grabs their drug tester and puts the tube into %s's mouth.", sendername ,giveplayer);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Drug Test Result: Not Intoxicated **");
                                GameTextForPlayer(playerid,"~w~This player is~n~~r~Not High", 8000, 1);
                                return 1;
                             }
                        }
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "   This player is offline !");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not a cop !");
            }
        }
        return 1;
    }



• /breathtest - Cu aceasta comanda un politist poate vedea daca suspectul a consumat alcool.
Codul:

if (strcmp(cmd, "/breathtest", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (IsACop(playerid))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /breathtest [playerid/PartOfName]");
                    return 1;
                }
                 giveplayerid = ReturnUser(tmp);
                 new level = GetPlayerDrunkLevel(giveplayerid);
                 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        if(GetDistanceBetweenPlayers(playerid,giveplayerid) < 3)
                        {
                            if(level > 600)
                            {
                                format(string, sizeof(string), "* %s grabs their breathalyzer and puts the tube into %s's mouth.", sendername ,giveplayer);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Breathalyzer Result: Intoxicated **");
                                GameTextForPlayer(playerid,"~w~This player is~n~~r~Drunk", 8000, 1);
                                return 1;
                            }
                               else
                               {
                                format(string, sizeof(string), "* %s grabs their breathalyzer and puts the tube into %s's mouth.", sendername ,giveplayer);
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Breathalyzer Result: Not Intoxicated **");
                                GameTextForPlayer(playerid,"~w~This player is~n~~r~Not Drunk", 8000, 1);
                                return 1;
                             }
                        }
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "   This player is offline !");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "You are not a cop !");
            }
        }
        return 1;
    }



• /checkspeed - Cu aceasta comanda un politist poate vedea cu ce viteza merge suspectul(radar).
Codul:

if (strcmp(cmd, "/checkspeed", true) == 0 || strcmp(cmd, "/cs", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (IsACop(playerid) || IsAFreecop(playerid))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /checkspeed [playerid/PartOfName]");
                    return 1;
                }
                giveplayerid = ReturnUser(tmp);
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        new speed = GetPlayerSpeed(giveplayerid, true);
                        if(ViewingSpeed[playerid] == 0)
                        {
                            if(speed == 0)
                            {
                                TextDrawSetString(Textdraw41[playerid], "~l~...");
                            }
                            else if(speed <= 80)
                            {
                                TextDrawSetString(Textdraw41[playerid], "~g~~h~...");
                            }
                            else if(speed >= 81 && speed <= 120)
                            {
                                TextDrawSetString(Textdraw41[playerid], "~y~~h~...");
                            }
                            else if(speed >= 121)
                            {
                                TextDrawSetString(Textdraw41[playerid], "~r~~h~...");
                            }
                            format(string, sizeof(string),"%s (%d)'s Speed is %d KM/h.",giveplayer,giveplayerid,speed);
                            TextDrawSetString(Textdraw42[playerid],string);
                            ShowSpeedGun(playerid);
                            HideSpeed = SetTimerEx("HideSpeedGun",5000,0,"i",playerid);
                        }
                        else if(ViewingSpeed[playerid] == 1)
                        {
                            KillTimer(HideSpeed);
                            HideSpeedGun(playerid);
                            if(speed == 0)
                            {
                                   TextDrawSetString(Textdraw41[playerid], "~l~...");
                            }
                            else if(speed <= 80)
                            {
                                TextDrawSetString(Textdraw41[playerid], "~g~~h~...");
                            }
                            else if(speed >= 81 && speed <= 120)
                            {
                                TextDrawSetString(Textdraw41[playerid], "~y~~h~...");
                            }
                            else if(speed >= 121)
                            {
                                TextDrawSetString(Textdraw41[playerid], "~r~~h~...");
                            }
                            format(string, sizeof(string),"%s (%d)'s Speed is %d KM/h.",giveplayer,giveplayerid,speed);
                            TextDrawSetString(Textdraw42[playerid],string);
                            ShowSpeedGun(playerid);
                            HideSpeed = SetTimerEx("HideSpeedGun",5000,0,"i",playerid);
                        }
                        new y, m, d;
                        new h,mi,s;
                        getdate(y,m,d);
                        gettime(h,mi,s);
                        format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Checked %s's Speed",d,m,y,h,mi,s,sendername,giveplayer);
                        CommandLog(string);
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "   No Such Player");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not a cop !");
            }
        }
        return 1;
    }



• /showbadge - Cu aceasta comanda un politist poate arata insigna unui player.
Codul:

if(strcmp(cmd, "/showbadge", true) == 0 || strcmp(cmd, "/showrank", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /showbadge [playerid/PartOfName]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

            if(IsPlayerConnected(giveplayerid))
            {
                format(string, sizeof(string), "** You Had Shown your Badges To %s", giveplayer);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                format(string, sizeof(string), "*** %s (%d) Has Shown you His/Her Badges: ***", sendername, playerid);
                SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string);
                if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* %s's PD Rank is Chief.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* %s's PD Rank is Captain.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* %s's PD Rank is Lieutenant.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* %s's PD Rank is Sergeant.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* %s's PD Rank is Officer.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* %s's PD Rank is Cadet.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                }
                 if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* %s's FBI Rank is Director.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* %s's FBI Rank is Assistant Director in Charge.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* %s's FBI Rank is Special Agent in Charge.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* %s's FBI Rank is Special Agent.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* %s's FBI Rank is Special Agent Trainee.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* %s's FBI Rank is Professional Staff.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                }
                 if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "* %s's NG Rank is General.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "* %s's NG Rank is Lieutenant.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "* %s's NG Rank is Rank 4.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "* %s's NG Rank is Major.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "* %s's NG Rank is Sergeant.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "* %s's NG Rank is Private.",sendername); SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string); }
                }
                
            
                if(PlayerInfo[playerid][pDuty] == 1)
                {
                       format(string, sizeof(string), "** %s Currently On Duty.", sendername);
                    SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string);
                }
                if(PlayerInfo[playerid][pDBanned] == 1)
                {
                    format(string, sizeof(string), "** %s Is banned From Cop duty.", giveplayer);
                    SendClientMessage(giveplayerid, TEAM_CYAN_COLOR, string);
                }

                new y, m, d;
                new h,mi,s;
                getdate(y,m,d);
                gettime(h,mi,s);
                format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /showbadge %s",d,m,y,h,mi,s,sendername, giveplayer);
                CommandLog(string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "** Player is not connected!");
            }
        }
        return 1;
    }


Nota: Nu am stiut cum se numeste rank-ul 4 la NG,trebuie sa editati voi.

• /checkbelt - Cu aceasta comanda un politist poate vedea daca un player poarta centura de siguranta (in caz de se afla intr-o masina) sau casca (in caz de se afla pe motoreta).
Codul:

if (strcmp(cmd, "/checkbelt", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(!IsACop(playerid))
            {
                SendClientMessage(playerid, COLOR_GREY, "** You are not a Cop!");
                return 1;
            }
            if(PlayerInfo[playerid][pDuty] != 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "** You are not on Duty!");
                return 1;
            }
            if(PlayerInfo[playerid][pDBanned] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "** You are Banned From Cop Duty!");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /checkbelt [playerid/PartOfName]");
                return 1;
            }
               giveplayerid = ReturnUser(tmp);
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    if(IsPlayerInAnyVehicle(giveplayerid))
                    {
                        if (ProxDetectorS(5.0, playerid, giveplayerid))
                        {
                            if(UsingBelt[giveplayerid] == 1)
                            {
                                format(string, sizeof(string), "%s is Using his Belt/Helmet Correctly.",sendername);
                            }
                            else if(UsingBelt[giveplayerid] == 0)
                            {
                                format(string, sizeof(string), "%s is Not Using his Belt/Helmet.",sendername);
                            }
                            SendClientMessage(playerid, COLOR_GREY, string);
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GREY, "* You must be Near the Player To Search him!");
                            return 1;
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GREY, "** Player is not on a Vehicle!");
                        return 1;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "** Invalid Player ID!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "** Not Connected Player!");
                return 1;
            }
        }
        return 1;
    }




Mafii:

• /steal - Cu aceasta comanda un mafiot poate fura armele sau telefonul unui player daca are cel putin rank 2.
Codul:

if(strcmp(cmd, "/steal", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7|| PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8|| PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9|| PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
            {
                if(PlayerInfo[playerid][pRank] < 2)
                {
                    SendClientMessage(playerid, COLOR_GREY, "** You need to be a Rank 2 organization member or higher to do this command!");
                    return 1;
                }
                new x_nr[64];
                x_nr = strtok(cmdtext, idx);
                if(!strlen(x_nr)) {
                    SendClientMessage(playerid, COLOR_WHITE, "|______________ Steal Victim's Items _______________|");
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /steal [itemname] [playerid/PartOfName]");
                      SendClientMessage(playerid, COLOR_GREY, "Available names: Phone, Weapons");
                    SendClientMessage(playerid, COLOR_WHITE, "|___________________________________________________|");
                    return 1;
                }
                if(strcmp(x_nr,"phone",true) == 0)
                {
                    tmp = strtok(cmdtext, idx);
                    if(!strlen(tmp)) {
                        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /steal phone [playerid/PartOfName]");
                        return 1;
                    }
                    giveplayerid = ReturnUser(tmp);
                    if(IsPlayerConnected(giveplayerid))
                    {
                        if(giveplayerid != INVALID_PLAYER_ID)
                        {
                            if (ProxDetectorS(3.0, playerid, giveplayerid))
                            {
                                if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "    Can't steal from yourself!"); return 1; }
                                format(string, sizeof(string), "* You have taken away %s's Phone.", giveplayer);
                                SendClientMessage(playerid, COLOR_WHITE, string);
                                format(string, sizeof(string), "* %s has taken away your Phone.", sendername);
                                SendClientMessage(giveplayerid, COLOR_WHITE, string);
                                PlayerInfo[giveplayerid][pPnumber] = 0;
                            }
                            else
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   That player is not near you!");
                                return 1;
                            }
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GREY, "   That player is Offline!");
                        return 1;
                    }
                }
                else if(strcmp(x_nr,"weapons",true) == 0)
                {
                    tmp = strtok(cmdtext, idx);
                    if(!strlen(tmp)) {
                        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /steal weapons [playerid/PartOfName]");
                        return 1;
                    }
                    giveplayerid = ReturnUser(tmp);
                    if(IsPlayerConnected(giveplayerid))
                    {
                        if(giveplayerid != INVALID_PLAYER_ID)
                        {
                            if (ProxDetectorS(3.0, playerid, giveplayerid))
                            {
                                if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "    Can't steal from yourself!"); return 1; }
                                format(string, sizeof(string), "* You have taken away %s's Weapons.", giveplayer);
                                SendClientMessage(playerid, COLOR_WHITE, string);
                                format(string, sizeof(string), "* %s has taken away your Weapons.", sendername);
                                SendClientMessage(giveplayerid, COLOR_WHITE, string);
                                SafeResetPlayerWeapons(giveplayerid);
                            }
                            else
                            {
                                SendClientMessage(playerid, COLOR_GREY, "   That player is not near you!");
                                return 1;
                            }
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GREY, "   That player is not online!");
                        return 1;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "   Unknown Item!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   You are not in a organization");
                return 1;
            }
        }
        return 1;
    }






Altele:

• /belt - Cu aceasta comanda un player isi pune centura cand se afla intr-o masina.
Codul:

if (strcmp(cmd, "/belt", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInAnyVehicle(playerid))
            {
                if(!IsModelABike(GetPlayerVehicleID(playerid)))
                {
                    if(UsingBelt[playerid] == 0)
                    {
                        SendClientMessage(playerid, TEAM_CYAN_COLOR, "* You just have Enganched your Belt to the Seat");
                        format(string, sizeof(string), "* %s Ticks on his Seabelt that comes out of the Seat", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        UsingBelt[playerid] = 1;
                    }
                    else
                    {
                        SendClientMessage(playerid, TEAM_CYAN_COLOR, "* You just have Took off your belt");
                        format(string, sizeof(string), "* %s Removes his Seabelt that comes out of the Seat", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        UsingBelt[playerid] = 0;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY,"* You are in a bike, use the Helmet! (/helmet)");
                    return 1;
                }
            }
        }
        return 1;
    }



• /helmet - Cu aceasta comanda un player isi pune casca cand se afla pe un motor.
Codul:

if (strcmp(cmd, "/helmet", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInAnyVehicle(playerid))
            {
                if(IsModelABike(GetPlayerVehicleID(playerid)))
                {
                    if(UsingBelt[playerid] == 0)
                    {
                        SendClientMessage(playerid, TEAM_CYAN_COLOR, "* You just have Enganched your Helmet to your head");
                        format(string, sizeof(string), "* %s Puts on his Helmet that is on the passanger seat", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        UsingBelt[playerid] = 1;
                    }
                    else
                    {
                        SendClientMessage(playerid, TEAM_CYAN_COLOR, "* You just have Took off your helmet");
                        format(string, sizeof(string), "* %s Removes his Helmet and leaves it on the passanger seat", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        UsingBelt[playerid] = 0;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY,"* You are in a car, use the seatbelt! (/belt)");
                    return 1;
                }
            }
        }
        return 1;
    }



• /engine (sau apasare SHIFT) - Cu aceasta comanda un player porneste motorul masinii (fara sa apesi SHIFT sau sa scrii /engine masina nu porneste)
Codul:

if(!strcmp(cmd, "/engine", true))
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInAnyVehicle(playerid))
            {
                if(!engineOn[GetPlayerVehicleID(playerid)])
                {
                    if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
                    {
                        return 1;
                    }
                    if(IsAnOwnableCar(idcar))
                    {
                        if(PlayerInfo[playerid][pPcarkey] == idcar) { }
                        else if(PlayerInfo[playerid][pPcarkey2] == idcar) { }
                        else { return 1; }
                    }
                    if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509)
                    {
                        return 1;
                    }
                    if(idcar == 59 || idcar == 60)
                    {
                        return 1;
                    }
                    if(idcar >= 135 && idcar <= 154)
                    {
                        if(HireCar[playerid] != idcar)
                        {
                            return 1;
                        }
                    }
                    if(IsAHarvest(idcar))
                    {
                        return 1;
                    }
                    if(IsADrugHarvest(idcar))
                    {
                        return 1;
                    }
                    if(IsASweeper(idcar))
                    {
                        return 1;
                    }
                    if(gEngine[playerid] == 1) { return 1; }

                    new playerveh = GetPlayerVehicleID(playerid);
                    PutPlayerInVehicle(playerid, playerveh, 0);
                    format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    SetTimerEx("StartingTheVehicle",3500,0,"i",playerid);
                    GameTextForPlayer(playerid, "~w~Starting vehicle engine...",3500,3);
                    gEngine[playerid] = 1;
                    new y, m, d;
                    new h,mi,s;
                    getdate(y,m,d);
                    gettime(h,mi,s);
                    format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /engine",d,m,y,h,mi,s,sendername);
                    CommandLog(string);
                    return 1;
                }
                if(engineOn[GetPlayerVehicleID(playerid)])
                {
                    if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
                    {
                        return 1;
                    }
                    if(IsAnOwnableCar(idcar))
                    {
                        if(PlayerInfo[playerid][pPcarkey] == idcar) { }
                        else if(PlayerInfo[playerid][pPcarkey2] == idcar) { }
                        else { return 1; }
                    }
                    if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509)
                    {
                        return 1;
                    }
                    if(idcar == 59 || idcar == 60)
                    {
                        return 1;
                    }
                    if(idcar >= 135 && idcar <= 154)
                    {
                        if(HireCar[playerid] != idcar)
                        {
                            return 1;
                        }
                    }
                    if(IsAHarvest(idcar))
                    {
                        return 1;
                    }
                    if(IsADrugHarvest(idcar))
                    {
                        return 1;
                    }
                    if(IsASweeper(idcar))
                    {
                        return 1;
                    }
                    engineOn[GetPlayerVehicleID(playerid)] = false;
                    //SafeRemovePlayerFromVehicle(playerid);
                    TogglePlayerControllable(playerid, 0);
                    format(string, sizeof(string), "* %s spins the vehicle key and turns off the engine.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    gEngine[playerid] = 0;
                    new y, m, d;
                    new h,mi,s;
                    getdate(y,m,d);
                    gettime(h,mi,s);
                    format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /engine",d,m,y,h,mi,s,sendername);
                    CommandLog(string);
                    return 1;
                }
            }
        }
        return 1;
    }
    
    
    
    //Partea a doua:
    
    
    public Startup(playerid, vehicleid)
{
    new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
    new newcar = GetPlayerVehicleID(playerid);
    if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER || engineOn[vehicleid])
    {
        //I do nothing!
    }
    else if(PlayerInfo[playerid][pAdminDuty] == 1)
    {
        engineOn[vehicleid] = 1;
    }
    else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && !vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar) && !IsASalesVehicle(newcar))
    {
        SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attention! Type /engine or press SHIFT to start your engine!");
        TogglePlayerControllable(playerid, false);
        vehicleEntered[playerid][vehicleid] = true;
        if(PlayerInfo[playerid][pSpeedo] == 1)
        {
            SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You Can Type /speedo To Enable/Disable The Speedometer!");
        }
        if(IsModelABike(GetPlayerVehicleID(playerid)))
        {
            SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Helmet or Else you can get Ticked! (/helmet)");
        }
        else
        {
            SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seat Belt or Else you can get Ticked! (/belt)");
        }
    }
    else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar))
    {
        SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attention! Type /engine or press SHIFT to start your engine!");
        TogglePlayerControllable(playerid, false);
        SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You Can Type /speedo To Enable/Disable The Speedometer!");
        SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seatbelt/Helmet or Else you can get Ticked! (/belt)");
    }
}

public engine2(playerid)
{
    if(!IsPlayerInAnyVehicle(playerid))
    {
        TogglePlayerControllable(playerid, 1);
    }
}

public busroutestoptimer(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new newcar = GetPlayerVehicleID(playerid);
        if(IsABus(newcar))
        {
            TogglePlayerControllable(playerid, 1);
            SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You can go now!");
        }
    }
}



• /usedildo - Cu aceasta comanda persoanele de sex feminim se pot masturba (doar daca au un dildo in mana).
Codul:

if (strcmp(cmd, "/usedildo", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(UsedDildo[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "* You already used a Dildo Recently, Your Vagina is red and worn, Please wait a bit more before using a dildo, Pervert!");
                return 1;
            }
            if(PlayerInfo[playerid][pSex] == 2)
            {
                
                new weap, ammo;
                GetPlayerWeaponData(playerid, 10, weap, ammo);
                if(weap == 10)
                {
                    TogglePlayerControllable(playerid, 0);
                    ApplyAnimation(playerid,"MISC","Scratchballs_01",4.1,1,1,1,1,15000);
                    SendClientMessage(playerid, COLOR_ORANGE, "* You start to Play with your Dildo and feel Reaaaally Great");
                    GameTextForPlayer(playerid, "~p~Playing With your Dildo...",15000,5);
                    format(string, sizeof(string), "* %s Takes his Purple Dildo and Starts to Play With it", sendername);
                    ProxDetector(20.0, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    SetTimerEx("UsingPurpleDildo",15000,0,"i",playerid);
                }
                   else if(weap == 11)
                {
                    TogglePlayerControllable(playerid, 0);
                    ApplyAnimation(playerid,"MISC","Scratchballs_01",4.1,1,1,1,1,15000);
                    SendClientMessage(playerid, COLOR_ORANGE, "* You start to Play with your Dildo and feel Reaaaally Great");
                    GameTextForPlayer(playerid, "~p~Playing With your Dildo...",15000,5);
                    format(string, sizeof(string), "* %s Takes his Small White Vibrator and Starts to Play With it", sendername);
                    ProxDetector(20.0, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    SetTimerEx("UsingSmallDildo",15000,0,"i",playerid);
                }
                else if(weap == 12)
                {
                    TogglePlayerControllable(playerid, 0);
                    ApplyAnimation(playerid,"MISC","Scratchballs_01",4.1,1,1,1,1,15000);
                    SendClientMessage(playerid, COLOR_ORANGE, "* You start to Play with your Dildo and feel Reaaaally Great");
                    GameTextForPlayer(playerid, "~p~Playing With your Dildo...",15000,5);
                    format(string, sizeof(string), "* %s Takes his Large White Vibrator and Starts to Play With it", sendername);
                    ProxDetector(20.0, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    SetTimerEx("UsingLargeDildo",15000,0,"i",playerid);
                }
                else if(weap == 13)
                {
                    TogglePlayerControllable(playerid, 0);
                    ApplyAnimation(playerid,"MISC","Scratchballs_01",4.1,1,1,1,1,15000);
                    SendClientMessage(playerid, COLOR_ORANGE, "* You start to Play with your Dildo and feel Reaaaally Great");
                    GameTextForPlayer(playerid, "~p~Playing With your Dildo...",15000,5);
                    format(string, sizeof(string), "* %s Takes his Small Black Vibrator and Starts to Play With it", sendername);
                    ProxDetector(20.0, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                    SetTimerEx("UsingBlackDildo",15000,0,"i",playerid);
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You are a man, How can you use a Dildo?...");
                return 1;
            }
        }
        return 1;
    }
    
    
    
    
    
//A doua parte:
    
    
    
    
    public UsingPurpleDildo(playerid)
{
    new Float:Health
    GetPlayerHealth(playerid, Health);
    SetPlayerHealth(playerid, Health+30);
    UsedDildo[playerid] = 1;
    TogglePlayerControllable(playerid, 1);
    GameTextForPlayer(playerid, "~p~Oh Yee~h~aaaa~h~ahhhh",6000,5);
    SendClientMessage(playerid, COLOR_GREY, "* You Got the Orgasm and Took the Dildo back to your Bag");
    DildoTimerReset = SetTimerEx("ResetDildo",600000,false, "i",playerid);
    return 1;
}

public UsingSmallDildo(playerid)
{
    new Float:Health
    GetPlayerHealth(playerid, Health);
    SetPlayerHealth(playerid, Health+10);
    UsedDildo[playerid] = 1;
    TogglePlayerControllable(playerid, 1);
    GameTextForPlayer(playerid, "~p~Oh Yee~h~aaaa~h~ahhhh",6000,5);
    SendClientMessage(playerid, COLOR_GREY, "* You Got the Orgasm and Took the Dildo back to your Bag");
    DildoTimerReset = SetTimerEx("ResetDildo",600000,false, "i",playerid);
    return 1;
}

public UsingLargeDildo(playerid)
{
    new Float:Health
    GetPlayerHealth(playerid, Health);
    SetPlayerHealth(playerid, Health+25);
    UsedDildo[playerid] = 1;
    TogglePlayerControllable(playerid, 1);
    GameTextForPlayer(playerid, "~p~Oh Yee~h~aaaa~h~ahhhh",6000,5);
    SendClientMessage(playerid, COLOR_GREY, "* You Got the Orgasm and Took the Dildo back to your Bag");
    DildoTimerReset = SetTimerEx("ResetDildo",600000,false, "i",playerid);
    return 1;
}

public UsingBlackDildo(playerid)
{
    new Float:Health
    GetPlayerHealth(playerid, Health);
    SetPlayerHealth(playerid, Health+17);
    UsedDildo[playerid] = 1;
    TogglePlayerControllable(playerid, 1);
    GameTextForPlayer(playerid, "~p~Oh Yee~h~aaaa~h~ahhhh",6000,5);
    SendClientMessage(playerid, COLOR_GREY, "* You Got the Orgasm and Took the Dildo back to your Bag");
    DildoTimerReset = SetTimerEx("ResetDildo",600000,false, "i",playerid);
    return 1;
}


public ResetDildo(playerid)
{
    SendClientMessage(playerid, COLOR_GREY, "* Your Vagina is no longer Red and Worn, you can use your Dildo Again");
    UsedDildo[playerid] = 0;
    return 1;
}



• /wank - Cu aceasta comanda persoanele de sex masculin se pot masturba (trebuie sa apesi spatiu ca sa... :- ).
Codul:

if(strcmp(cmd, "/wank", true) == 0)
    {
        new Float:Health;
        GetPlayerHealth(playerid, Health);
        if(WankedRecently[playerid] == 0)
        {
            if(IsWanking[playerid] == 0)
            {
                ApplyAnimation(playerid, "PAULNMAC","wank_in",4.1,0,1,1,1,0);
                TimesWanked[playerid] = 0;
                SetTimerEx("StartWank",3500,0,"i",playerid);
                format(string, sizeof(string),"* %s Unzips his pants and starts to give 'food to the chicken'",sendername);
                ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
            }
            else
            {
                ApplyAnimation(playerid, "PAULNMAC","wank_out",4.1,0,1,1,1,0);
                IsWanking[playerid] = 0;
                WankedRecently[playerid] = 1;
                new rand = random(sizeof(RandomWankTime));
                SetTimerEx("CanWankAgain",RandomWankTime[rand][0],0,"i",playerid);
                if(TimesWanked[playerid] > 0 && TimesWanked[playerid] < 10)
                {
                    if(Health < 90) { SetPlayerHealth(playerid, Health+10); }
                    else { SetPlayerHealth(playerid, 100); }
                }
                else if(TimesWanked[playerid] > 11 && TimesWanked[playerid] < 20)
                {
                    if(Health < 85) { SetPlayerHealth(playerid, Health+15); }
                    else { SetPlayerHealth(playerid, 100); }
                }
                else if(TimesWanked[playerid] > 21 && TimesWanked[playerid] < 30)
                {
                    if(Health < 80) { SetPlayerHealth(playerid, Health+20); }
                    else { SetPlayerHealth(playerid, 100); }
                }
                else if(TimesWanked[playerid] > 31 && TimesWanked[playerid] < 40)
                {
                    if(Health < 75) { SetPlayerHealth(playerid, Health+25); }
                    else { SetPlayerHealth(playerid, 100); }
                }
                else if(TimesWanked[playerid] > 41 && TimesWanked[playerid] < 50)
                {
                    if(Health < 70) { SetPlayerHealth(playerid, Health+30); }
                    else { SetPlayerHealth(playerid, 100); }
                }
                new RandomFormat = random(5);
                switch (RandomFormat)
                {
                    case 0: { format(string, sizeof(string),"* %s Finishes and unzips his pants.",sendername); }
                    case 1: { format(string, sizeof(string),"** %s Finishes and cums his hands.",sendername); }
                    case 2: { format(string, sizeof(string),"** %s Finishes and cums all over the floor.",sendername); }
                    case 3: { format(string, sizeof(string),"** %s Finishes and cums all over the place.",sendername); }
                    case 4: { format(string, sizeof(string),"** %s Finishes and cums all over the place and the players.",sendername); }
                }
                ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                TimesWanked[playerid] = 0;
                
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* Your genitals are red and worn, please wait a few minutes before wanking again");
               return 1;
        }
        return 1;
    }
    
    
    
    
    //A doua parte
    
    
    
    
    
    public StartWank(playerid)
{
    SendClientMessage(playerid, COLOR_GREY, "* You are now Wanking, Press the Sprint Key to Wank");
    IsWanking[playerid] = 1;
    GameTextForPlayer(playerid, "~w~Press ~y~ ~k~~PED_SPRINT~ ~w~To Wank", 6000, 5);
    return 1;
}


public ResetWank(playerid)
{
    JustWanked[playerid] = 0;
    return 1;
}

public CanWankAgain(playerid)
{
    WankedRecently[playerid] = 0;
    SendClientMessage(playerid, COLOR_GREY, "* Your genitals and your penis are no longer red and worn.");
    return 1;
}




Mai multe locuri pentru rob.
/robcityhall, /robbank, /robburger, /robcluckin, /robpizza, /robalhambra , /robbar
Codul:

if(strcmp(cmd, "/robcityhall", true) == 0)
    {
        new success = random(2);
        if(CityHallRobbedRecently == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* This location was robbede recently, try again later");
            return 1;
        }
        if(PlayerInfo[playerid][pRobTime] >= 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 358.5919,184.2908,1008.3828))
        {
            if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
            {
                if(PlayerInfo[playerid][pDuty] == 0)
                {
                    if(success == 1)
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the city Hall, please remain in the checkpoint for 60 Seconds!");
                        RobbingTime[playerid] = 60;
                        RobCityHallTimer = SetTimerEx("RobCityHall",1000,true,"i",playerid);
                        WantedPoints[playerid] = 5;
                        SetPlayerCriminal(playerid,255, "Robbing the City Hall");
                        PlayerInfo[playerid][pRobTime] = 900;
                        CityHallRobbedRecently = 1;
                        SetTimer("UnsetCityHallRob",1500000,false);
                        OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the City Hall!");
                        WantedPoints[playerid] = 2;
                        SetPlayerCriminal(playerid,255, "Attempting to rob the City Hall");
                        PlayerInfo[playerid][pRobTime] = 500;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* You're not at the City Hall Rob Point!");
            return 1;
        }
        return 1;
    }

    if(strcmp(cmd, "/robbank", true) == 0)
    {
        new success = random(2);
        if(BankRobbedRecently == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
            return 1;
        }
        if(PlayerInfo[playerid][pRobTime] >= 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 2309.6060,-4.0211,26.7422))
        {
            if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
            {
                if(PlayerInfo[playerid][pDuty] == 0)
                {
                    if(success == 1)
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the city Hall, please remain in the checkpoint for 95 Seconds!");
                        RobbingTime[playerid] = 95;
                        RobBankTimer = SetTimerEx("RobBank",1000,true,"i",playerid);
                        WantedPoints[playerid] = 5;
                        SetPlayerCriminal(playerid,255, "Robbing the Bank");
                        PlayerInfo[playerid][pRobTime] = 900;
                        CityHallRobbedRecently = 1;
                        SetTimer("UnsetBankRob",1500000,false);
                        OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the Bank!");
                        WantedPoints[playerid] = 2;
                        SetPlayerCriminal(playerid,255, "Attempting to rob the Bank");
                        PlayerInfo[playerid][pRobTime] = 500;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* You're not at the Bank Rob Point!");
            return 1;
        }
        return 1;
    }

    if(strcmp(cmd, "/robgym", true) == 0)
    {
        new success = random(2);
        if(GymRobbedRecently == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
            return 1;
        }
        if(PlayerInfo[playerid][pRobTime] >= 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 756.5454,5.4325,1000.6992))
        {
            if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
            {
                if(PlayerInfo[playerid][pDuty] == 0)
                {
                    if(success == 1)
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the Gym, please remain in the checkpoint for 50 Seconds!");
                        RobbingTime[playerid] = 50;
                        RobGymTimer = SetTimerEx("RobGym",1000,true,"i",playerid);
                        WantedPoints[playerid] = 5;
                        SetPlayerCriminal(playerid,255, "Robbing the Gym");
                        PlayerInfo[playerid][pRobTime] = 900;
                        GymRobbedRecently = 1;
                        SetTimer("UnsetGymRob",1500000,false);
                        OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the Gym!");
                        WantedPoints[playerid] = 2;
                        SetPlayerCriminal(playerid,255, "Attempting to rob the Gym");
                        PlayerInfo[playerid][pRobTime] = 500;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* You're not at the Gym Rob Point!");
            return 1;
        }
        return 1;
    }

    if(strcmp(cmd, "/robdonut", true) == 0)
    {
        new success = random(2);
        if(DonutRobbedRecently == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
            return 1;
        }
        if(PlayerInfo[playerid][pRobTime] >= 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 379.1978,-184.1220,1000.6328))
        {
            if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
            {
                if(PlayerInfo[playerid][pDuty] == 0)
                {
                    if(success == 1)
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the Donut Store, please remain in the checkpoint for 55 Seconds!");
                        RobbingTime[playerid] = 55;
                        RobDonutTimer = SetTimerEx("RobDonut",1000,true,"i",playerid);
                        WantedPoints[playerid] = 5;
                        SetPlayerCriminal(playerid,255, "Robbing the Donut Store");
                        PlayerInfo[playerid][pRobTime] = 900;
                        DonutRobbedRecently = 1;
                        SetTimer("UnsetDonutRob",1500000,false);
                        OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the Donut Store!");
                        WantedPoints[playerid] = 2;
                        SetPlayerCriminal(playerid,255, "Attempting to rob the Donut Store");
                        PlayerInfo[playerid][pRobTime] = 500;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* You're not at the Donut Store Rob Point!");
            return 1;
        }
        return 1;
    }

    if(strcmp(cmd, "/robalhambra", true) == 0)
    {
        new success = random(2);
        if(AlhambraRobbedRecently == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
            return 1;
        }
        if(PlayerInfo[playerid][pRobTime] >= 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 499.6341,-20.3592,1000.6797))
        {
            if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
            {
                if(PlayerInfo[playerid][pDuty] == 0)
                {
                    if(success == 1)
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the Alhambra Club, please remain in the checkpoint for 45 Seconds!");
                        RobbingTime[playerid] = 45;
                        RobAlhambraTimer = SetTimerEx("RobAlhambra",1000,true,"i",playerid);
                        WantedPoints[playerid] = 5;
                        SetPlayerCriminal(playerid,255, "Robbing the Alhambra Club");
                        PlayerInfo[playerid][pRobTime] = 900;
                        AlhambraRobbedRecently = 1;
                        SetTimer("UnsetAlhambraRob",1500000,false);
                        OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the Alhambra Club!");
                        WantedPoints[playerid] = 2;
                        SetPlayerCriminal(playerid,255, "Attempting to rob the Alhambra Club");
                        PlayerInfo[playerid][pRobTime] = 500;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* You're not at the Alhambra Rob Point!");
            return 1;
        }
        return 1;
    }

    if(strcmp(cmd, "/robbar", true) == 0)
    {
        new success = random(2);
        if(BarRobbedRecently == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
            return 1;
        }
        if(PlayerInfo[playerid][pRobTime] >= 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 492.0305,-82.4695,998.7578))
        {
            if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
            {
                if(PlayerInfo[playerid][pDuty] == 0)
                {
                    if(success == 1)
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the Ten Green bottles Bar, please remain in the checkpoint for 50 Seconds!");
                        RobbingTime[playerid] = 50;
                        RobBarTimer = SetTimerEx("RobBar",1000,true,"i",playerid);
                        WantedPoints[playerid] = 5;
                        SetPlayerCriminal(playerid,255, "Robbing the TGB Bar");
                        PlayerInfo[playerid][pRobTime] = 900;
                        BarRobbedRecently = 1;
                        SetTimer("UnsetBarRob",1500000,false);
                        OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the TGB Bar!");
                        WantedPoints[playerid] = 2;
                        SetPlayerCriminal(playerid,255, "Attempting to rob the TGB Bar");
                        PlayerInfo[playerid][pRobTime] = 500;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* You're not at the TGB Bar Rob Point!");
            return 1;
        }
        return 1;
    }

    if(strcmp(cmd, "/robpizza", true) == 0)
    {
        new success = random(2);
        if(PizzaRobbedRecently == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
            return 1;
        }
        if(PlayerInfo[playerid][pRobTime] >= 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 373.6143,-118.8086,1001.4922))
        {
            if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
            {
                if(PlayerInfo[playerid][pDuty] == 0)
                {
                    if(success == 1)
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the Pizza Hut, please remain in the checkpoint for 50 Seconds!");
                        RobbingTime[playerid] = 50;
                        RobPizzaTimer = SetTimerEx("RobPizza",1000,true,"i",playerid);
                        WantedPoints[playerid] = 5;
                        SetPlayerCriminal(playerid,255, "Robbing the Pizza Hut");
                        PlayerInfo[playerid][pRobTime] = 900;
                        PizzaRobbedRecently = 1;
                        SetTimer("UnsetPizzaRob",1500000,false);
                        OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the Pizza Hut!");
                        WantedPoints[playerid] = 2;
                        SetPlayerCriminal(playerid,255, "Attempting to rob the Pizza Hut");
                        PlayerInfo[playerid][pRobTime] = 500;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* You're not at the Pizza Hut Rob Point!");
            return 1;
        }
        return 1;
    }

    if(strcmp(cmd, "/robburger", true) == 0)
    {
        new success = random(2);
        if(PlayerInfo[playerid][pRobTime] >= 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 373.8943,-67.4481,1001.5078))
        {
            if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
            {
                if(GetPlayerVirtualWorld(playerid) == 1 && Burger1RobbedRecently == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
                    return 1;
                }
                else if(GetPlayerVirtualWorld(playerid) == 2 && Burger2RobbedRecently == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
                    return 1;
                }
                if(PlayerInfo[playerid][pDuty] == 0)
                {
                    if(success == 1)
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the Burger Shoot, please remain in the checkpoint for 55 Seconds!");
                        RobbingTime[playerid] = 55;
                        RobBurgerTimer = SetTimerEx("RobBurger",1000,true,"i",playerid);
                        WantedPoints[playerid] = 5;
                        SetPlayerCriminal(playerid,255, "Robbing the Burger Shoot");
                        PlayerInfo[playerid][pRobTime] = 900;
                        if(GetPlayerVirtualWorld(playerid) == 1) { Burger1RobbedRecently = 1; SetTimer("UnsetBurger1Rob",1500000,false); }
                        else if(GetPlayerVirtualWorld(playerid) == 2) { Burger2RobbedRecently = 1; SetTimer("UnsetBurger2Rob",1500000,false); }
                        OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the Burger Shoot!");
                        WantedPoints[playerid] = 2;
                        SetPlayerCriminal(playerid,255, "Attempting to rob the Burger Shoot!");
                        PlayerInfo[playerid][pRobTime] = 500;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* You're not at the Burgershoot Rob Point!");
            return 1;
        }
        return 1;
    }

    if(strcmp(cmd, "/robcluckin", true) == 0)
    {
        new success = random(2);
        if(PlayerInfo[playerid][pRobTime] >= 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2, 371.7011,-6.2796,1001.8589))
        {
            if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
            {
                if(GetPlayerVirtualWorld(playerid) == 1 && Cluckin1RobbedRecently == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
                    return 1;
                }
                else if(GetPlayerVirtualWorld(playerid) == 2 && Cluckin2RobbedRecently == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
                    return 1;
                }
                if(PlayerInfo[playerid][pDuty] == 0)
                {
                    if(success == 1)
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the Burger Shoot, please remain in the checkpoint for 55 Seconds!");
                        RobbingTime[playerid] = 55;
                        RobCluckinTimer = SetTimerEx("RobCluckin",1000,true,"i",playerid);
                        WantedPoints[playerid] = 5;
                        SetPlayerCriminal(playerid,255, "Robbing the Robbing the Cluckin' Bell");
                        PlayerInfo[playerid][pRobTime] = 900;
                        if(GetPlayerVirtualWorld(playerid) == 1) { Cluckin1RobbedRecently = 1; SetTimer("UnsetCluckin1Rob",1500000,false); }
                        else if(GetPlayerVirtualWorld(playerid) == 2) { Cluckin2RobbedRecently = 1; SetTimer("UnsetCluckin2Rob",1500000,false); }
                        OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the Cluckin' Bell!");
                        WantedPoints[playerid] = 2;
                        SetPlayerCriminal(playerid,255, "Attempting to rob the Cluckin' Bell!");
                        PlayerInfo[playerid][pRobTime] = 500;
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "* You're not at the Cluckin' Bell Rob Point!");
            return 1;
        }
        return 1;
    }



Cam asta e tot deocamdata.
RazR daca esti de acord si in caz de lipseste ceva din cod,un surub nu e strans bine imi dai un PM.

Comenzile nu sunt copiate de pe nici un server,nu le-am mai vazut nicaieri !

Codurile le-am mai modificat eu astfel incat sa poata fi puse pe B-Zone si am reparat cateva greseli.
Toate comenzile sunt testate de mine si nu au nici un bug.

Mi se par foarte interesante comenzile pentru departamente,deoarece a devenit plictisitoar si atunci cand controlezi pe cineva,cateodata unii playeri se dau jos din masina iti arata licentele fara sa le ceri macar si fug repede ca se grabesc.In viata reala nu e deloc asa.

/engine mi se pare foarte interesant,e mai roleplay si asa furi o masina mai greu.Asa se va diminua si furtul.
Mai multe locuri de rob poate ca nu strica,iar /usedildo si /wank sunt doar for fun. :)

Sper ca RazR sa fie de acord,ar fi foarte frumos daca s-ar introduce aceste comenzi.Incet incet,vom evoulua si in privinta rp-ului,iar pe server va fi mai putin DM/DB.

Sa nu va puna dracu' sa dati reply la postul asta.

Pareri ?

Link to comment
Share on other sites

Toate sunt bune si ar face jocul mai placut , faza cu rob si steal si cel mai important /engine cred k e nevoie de ea oricum astp rasp lui razr, care sper sa fie unul pozitiv

Link to comment
Share on other sites

Astea is comenzi hard role-play ceea ce nu se practica inca la noi pe server.. Ai postat comenzile astea de parca toata lumea stie roleplay , e o plictiseala totala pe server.. 75 la suta din server nu stie cum sa foloseasca comenzile astea si cand.

Link to comment
Share on other sites

1. Daca topicul pentru propuneri e inchis nu inseamna ca trebuie sa faci topic.

2. Data viitoare trece numele celui care a scris codul.

3. Nu cred ca am cerut eu vreodata sa postati codul, ma descurc si singur, nu ca altii care copiaza si se cred genii (nu ma refer la tine, radiKal).

 

CLOSED!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Guest
This topic is now closed to further replies.
×
×
  • 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.