Little problem with SendClientMessage
#4

pawn Код:
if(!strcmp(cmdtext,"/opengate",true))
{
    if(gTeam[playerid] == NATIONALGUARD) {
        if(IsPlayerInRangeOfPoint(playerid, 12.0, 96.76334, 1919.52905, 18.88980))
        {
            MoveObject(area51door1,96.76334, 1919.52905, 15.29157,2.0);
            MoveObject(area51door2,96.73065, 1920.58228, 15.29157,2.0);
            MoveObject(area51door3,96.75900, 1921.33777, 15.29157,2.0);
            SendClientMessage(playerid, COLOR_GREEN, "Gate has been opened. Do not forget to close it.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 12.0, 286.17056, 1949.13794, 19.27510))
        {
            MoveObject(area51slot1,286.17056, 1949.13794, 13.25867,1.5);
            MoveObject(area51slot2,286.16769, 1963.24854, 13.27771,1.5);
            SendClientMessage(playerid, COLOR_GREEN, "Gate has been opened. Do not forget to close it.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 12.0, 344.67886, 1798.26257, 20.32330))
        {
            MoveObject(area51gate,344.67886, 1798.26257, 13.73979,2.0);
            SendClientMessage(playerid, COLOR_GREEN, "Gate has been opened. Do not forget to close it.");
            return 1;
        }
        SendClientMessage(playerid, COLOR_RED, "You are not close to any usable gate.");
    }
    return 1;
}
Reply


Messages In This Thread
Little problem with SendClientMessage - by needhack - 25.02.2013, 17:57
Re: Little problem with SendClientMessage - by DiGiTaL_AnGeL - 25.02.2013, 18:11
Re: Little problem with SendClientMessage - by needhack - 25.02.2013, 18:15
Re: Little problem with SendClientMessage - by Catalyst- - 25.02.2013, 18:27
Re: Little problem with SendClientMessage - by DiGiTaL_AnGeL - 25.02.2013, 18:29
Re: Little problem with SendClientMessage - by Patrick - 25.02.2013, 18:34
Re: Little problem with SendClientMessage - by Catalyst- - 25.02.2013, 18:40
Re: Little problem with SendClientMessage - by needhack - 25.02.2013, 18:44
Re: Little problem with SendClientMessage - by needhack - 25.02.2013, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)