How to?
#2

pawn Код:
if (strcmp("/startmission", cmdtext, true) == 0)
    {
        if(!IsPlayerAdmin(playerid))
        {
            SendClientMessage(playerid, COLOR_RED, "<!>You are not an admin!");
            return 1;
        }
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(GetPlayerTeam(i) == 1)
                {
                    SendClientMessage(i, COLOR_LIGHTBLUE, "<!>Mission: Defend the truck!");
                    return 1;
                }
                if(GetPlayerTeam(i) == 2)
                {
                    SetPlayerCheckpoint(i,-1426.42, 478.65, 5.61,5);
                    SendClientMessage(i, COLOR_LIGHTBLUE, "<!>Mission: Get the truck and deliver it at the base!");
                    return 1;
                }
            }
        }
    }
Rep
Reply


Messages In This Thread
How to? - by Twinki1993 - 12.01.2012, 04:37
Re: How to? - by coole210 - 12.01.2012, 05:34
Re: How to? - by Twinki1993 - 12.01.2012, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)