[HELP]Box Command
#1

Hello. I made this simple command :

pawn Код:
if(strcmp(cmd,"/cashbox",true)==0)
    {
    if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 105)
    {
        MissionActive = 1;
        return 1;
    }
        else
    {
    SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command.");
    }
    return 1;
    }
No errors when compiling, but when I enter in game and tipe /cashbox as admin nothing happens.

And the cashbox mission exists look :
pawn Код:
public OnGameModeMission()
{   if(pdebug == 1){print("[DEBUG] OnGameModeMission()");}

    new string[128];
    if(MissionActive == 1)
    {
        if(PlayerIsDoingMission == INVALID_PLAYER_ID)
        {
            ResetMissions();
            new rcashbox;
            if(city == 1){rcashbox = random(sizeof(RandomFindCashbox_LS));}
            RandomCashboxMissionMoney = MinCashboxMissionMoney+random(MaxCashboxMissionMoney-MinCashboxMissionMoney);
            if(city == 1){format(string, sizeof(string), "** Mission: Cashbox **: Find the cashbox at %s! Worth: %d$", RandomFindCashboxName_LS[rcashbox][0], RandomCashboxMissionMoney);
            SendClientMessageToAll(COLOR_YELLOW, string);
            }
            new Float:ratio = 4.0;
            for(new i=0; i<MAX_SLOTS; i++)
            {
                if(city == 1){SetPlayerCheckpoint(i, RandomFindCashbox_LS[rcashbox][0], RandomFindCashbox_LS[rcashbox][1], RandomFindCashbox_LS[rcashbox][2], ratio);}
            }
            if(city == 1){
            CheckpointBusyX = RandomFindCashbox_LS[rcashbox][0];
            CheckpointBusyY = RandomFindCashbox_LS[rcashbox][1];
            CheckpointBusyZ = RandomFindCashbox_LS[rcashbox][2];
            AllPlaySound(1139);
            }
        }
        }
Reply


Messages In This Thread
[HELP]Box Command - by [Aka]Dragonu - 29.08.2011, 08:25
Re: [HELP]Box Command - by =WoR=Varth - 29.08.2011, 09:36
Re: [HELP]Box Command - by [Aka]Dragonu - 29.08.2011, 09:47
Re: [HELP]Box Command - by =WoR=Varth - 29.08.2011, 14:42
Re: [HELP]Box Command - by [MWR]Blood - 29.08.2011, 14:46
Re: [HELP]Box Command - by [Aka]Dragonu - 29.08.2011, 18:37
Re: [HELP]Box Command - by =WoR=Varth - 30.08.2011, 03:26
Re: [HELP]Box Command - by PrawkC - 30.08.2011, 04:11
Re: [HELP]Box Command - by [Aka]Dragonu - 30.08.2011, 07:09
Re: [HELP]Box Command - by =WoR=Varth - 30.08.2011, 07:15

Forum Jump:


Users browsing this thread: 1 Guest(s)