Show Spawn protection
#7

pawn Код:
//OnPlayerSpawn
SetPlayerChatBubble(playerid,"Spawn-Kill Protected",0xFF9900AA, 100.0,10000);
Add3DTextLabelToPlayer(playerid);


//stock
stock Add3DTextLabelToPlayer(playerid)
{
            //Labels
           
    ranklabelCTU[playerid] = Create3DTextLabel("{1464F4}CTU",0xF97804FF,30.0,40.0,50.0,30,-1,1);
    ranklabelSNAKES[playerid] = Create3DTextLabel("{CC3232}Coral Snake",0xF97804FF,30.0,40.0,50.0,30,-1,1);


    {
    switch (gTeam[playerid])
    {
    case 1: //police
    {
    Attach3DTextLabelToPlayer(ranklabelCTU[playerid], playerid, 0.0, 0.0, 0.5);
    new labelstring[50];
    format(labelstring, sizeof(labelstring), "Police %s", RankName[pRank[playerid]]);
    Update3DTextLabelText(ranklabelCTU[playerid], 0xF97804FF, labelstring);
    }

    case 2: //terrorists
    {
    Attach3DTextLabelToPlayer(ranklabelSNAKES[playerid], playerid, 0.0, 0.0, 0.5);
    new labelstring[50];
    format(labelstring, sizeof(labelstring), "Terrorist %s", RankName[pRank[playerid]]);
    Update3DTextLabelText(ranklabelSNAKES[playerid], 0xF97804FF, labelstring);
    }
    }

    }
}
Reply


Messages In This Thread
Show Spawn protection - by BlackWolf120 - 28.03.2011, 21:07
Re: Show Spawn protection - by BlackWolf120 - 28.03.2011, 21:10
Re: Show Spawn protection - by Ihsan-Cingisiz - 28.03.2011, 21:12
Re: Show Spawn protection - by Fj0rtizFredde - 28.03.2011, 21:13
Re: Show Spawn protection - by BlackWolf120 - 28.03.2011, 21:14
Re: Show Spawn protection - by Ihsan-Cingisiz - 28.03.2011, 21:17
Re: Show Spawn protection - by BlackWolf120 - 28.03.2011, 21:21

Forum Jump:


Users browsing this thread: 2 Guest(s)