28.03.2011, 21:21
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);
}
}
}
}