Script Request Thread #5
#1

The old thread had 45 pages, and it was getting to hard to find your answers if you were a day late. So from now on ask in this thread, answer via PM.
Reply
#2

Moderator will do his job when he thinks that topic is full, not you.
Reply
#3

It's not just me, many others think it's full.
Reply
#4

Quote:
Originally Posted by Don Correlli
Moderator will do his job when he thinks that topic is full, not you.
Reply
#5

pawn Code:
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /(su)spect [playerid/PartOfName] [wantedlevel] [reason]");
                return 1;
            }
            new playa;
            new money;
            playa = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            money = strval(tmp);
            if (IsACop(playerid))
            {
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        new length = strlen(cmdtext);
                        while ((idx < length) && (cmdtext[idx] <= ' '))
                        {
                            idx++;
                        }
                        new offset = idx;
                        new result[64];
                        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                        {
                            result[idx - offset] = cmdtext[idx];
                            idx++;
                        }
                        result[idx - offset] = EOS;
                        if(!strlen(result))
                        {
                            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /(su)spect [playerid/PartOfName] [wantedlevel] [reason]");
                            return 1;
                        }
                        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
                        {
                            SendClientMessage(playerid, COLOR_WHITE, " You can't suspect cops !");
                            return 1;
                        }
                        new wlevel = WantedLevel[playa];
                        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        WantedLevel[playa] = money;
                        SetPlayerWantedLevel(playa, money);
                        format(string, sizeof(string), "You've commited a Crime ( %s ). Reporter: %s.", result, sendername);
                        SendClientMessage(playa, COLOR_LIGHTRED, string);
                        format(string, sizeof(string), "Current Wanted Level: %d", wlevel);
                        SendClientMessage(playa, COLOR_YELLOW, string);
                        for(new i = 0; i < MAX_PLAYERS; i++)
                        {
                            if(IsPlayerConnected(i))
                            {
                                if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2)
                                {
                                    format(string, sizeof(string), "HQ: All Units APB: Reporter: %s", sendername);
                                    SendClientMessage(i, TEAM_BLUE_COLOR, string);
                                    format(string, sizeof(string), "HQ: Crime: %s, Suspect: %s", result, giveplayer);
                                    SendClientMessage(i, TEAM_BLUE_COLOR, string);
                                }
                            }
                        }
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "You are not a Cop !");
            }
        }
        return 1;
    }
Why it says you can't suspect a cop if he isn't a cop? What to do?
Reply
#6

For the love of God, ghzspark ... use [ pawn ] code [ /pawn ] pl0x ..
Reply
#7

@ghzspark - OMFG! Why the hell did you bump this one-year-old topic??!
Reply
#8

Quote:
Originally Posted by xRyder
View Post
@ghzspark - OMFG! Why the hell did you bump this one-year-old topic??!
Jeesh, just saw how old it is .. Damn
Reply
#9

Oops, sorry for pawn one

And WHAT? This is the only topic I saw

Anyway, don't you know the answer?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)