[Tips Needed]Scripting teamchat with teamcolors, "/tpm" or just "@" ||+1rep||
#1

Alright,i want some tips while scripting a tpm cmd uses the Teams colors
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        SetPlayerPos(playerid, 2495.0413,-1685.2115,13.5115);
        SetPlayerCameraPos(playerid, 2495.0134,-1681.1893,13.3387);
        SetPlayerCameraLookAt(playerid, 2495.0413,-1685.2115,13.5115);
        GameTextForPlayer(playerid, "~g~Grove", 5000, 5);
        SetPlayerColor(playerid, 0x2D964DFF);
        SetPlayerFacingAngle(playerid, 360.000);
        ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    else if(classid == 1)
    {
        SetPlayerPos(playerid, 369.2329,1916.1652,18.3985);
        SetPlayerCameraPos(playerid, 365.9307,1912.9822,17.6406);
        SetPlayerCameraLookAt(playerid, 369.2329,1916.1652,18.3985);
        GameTextForPlayer(playerid, "Army", 5000, 4);
        SetPlayerColor(playerid, 0xC4840EFF);
        SetPlayerFacingAngle(playerid, 110.000);
        ApplyAnimation(playerid, "GHANDS", "gsign5LH", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    return1;
}
But scripting it as a CMD which uses the Chat color as Team color and Only displays for the team, :P give me few tips,how to start,i know few functions not all of them xD,and thanks.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)