07.05.2014, 21:38
Where is the bug
When i enter in the game i select a class for example: Germany
On my head it will says Germany in cian color letter but when i change class /switchclass for Russia i will got on my head Russia and Germany letters.. What can i do..?
When i enter in the game i select a class for example: Germany
On my head it will says Germany in cian color letter but when i change class /switchclass for Russia i will got on my head Russia and Germany letters.. What can i do..?
PHP код:
CMD:switchclass(playerid, params[])
{
SetPlayerHealth(playerid, 0.0);
ForceClassSelection(playerid);
SendClientMessage(playerid, -1,"Select you class!");
return 1;
}
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_GERMANY) {
SetPlayerArmour(playerid, 100);
new Text3D:label7 = Create3DTextLabel("GERMANY",TEAM_GERMANY_COLOR, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
SetPlayerTeam(playerid, 0);
}
else if(gTeam[playerid] == TEAM_IRAQ) {
SetPlayerArmour(playerid, 100);
new Text3D:label7 = Create3DTextLabel("IRAQ",TEAM_IRAQ_COLOR, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
SetPlayerTeam(playerid, 1);
}
else if(gTeam[playerid] == TEAM_RUSSIA) {
SetPlayerArmour(playerid, 100);
new Text3D:label7 = Create3DTextLabel("RUSSIA",TEAM_RUSSIA_COLOR, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
SetPlayerTeam(playerid, 2);
}
else if(gTeam[playerid] == TEAM_USA) {
SetPlayerArmour(playerid, 100);
new Text3D:label7 = Create3DTextLabel("USA",TEAM_USA_COLOR, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
SetPlayerTeam(playerid, 3);
}
else if(gTeam[playerid] == TEAM_BANGLADESH) {
SetPlayerArmour(playerid, 100);
new Text3D:label7 = Create3DTextLabel("BANGLADESH",TEAM_BANGLADESH_COLOR, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
SetPlayerTeam(playerid, 4);
}
return 1;
}