[Help]Area 51 Gates Problem
#1

Hi guys!

I have this script:
pawn Код:
if(strcmp(cmdtext, "/areagateclose", true) == 0)
  {
        if(IsPlayerLAdmin(playerid))
        {
            new pName[MAX_PLAYER_NAME];
        new string[48];
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "%s has closed the Area 51 Gate", pName);
        SendClientMessageToAll(COLOR_RED, string);

            MoveObject(aGate2, 96.669350, 1925.953735, 18.855873, 4);
        return 1;
        }
        else
          {
            SendClientMessage(playerid, COLOR_RED,"You are not an admin");
                return 1;
            }
    }
    return 0;
But I don't think it will work... Is there something wrong that I am doing... I think I might have the return 1; in the wrong place... I don't know, this is my first 'written by myself' script ...
Reply


Messages In This Thread
[Help]Area 51 Gates Problem - by Tigerbeast11 - 19.10.2009, 17:51
Re: [Help]Area 51 Gates Problem - by dice7 - 19.10.2009, 18:09
Re: [Help]Area 51 Gates Problem - by Peter_Corneile - 19.10.2009, 18:32
Re: [Help]Area 51 Gates Problem - by dice7 - 19.10.2009, 18:41
Re: [Help]Area 51 Gates Problem - by Pghpunkid - 19.10.2009, 18:42
Re: [Help]Area 51 Gates Problem - by Peter_Corneile - 19.10.2009, 18:42
Re: [Help]Area 51 Gates Problem - by Peter_Corneile - 19.10.2009, 18:44
Re: [Help]Area 51 Gates Problem - by Pghpunkid - 19.10.2009, 18:45
Re: [Help]Area 51 Gates Problem - by Peter_Corneile - 19.10.2009, 18:46
Re: [Help]Area 51 Gates Problem - by Pghpunkid - 19.10.2009, 18:47

Forum Jump:


Users browsing this thread: 2 Guest(s)