23.01.2012, 14:13
pawn Код:
public OnPlayerConnect(playerid)
{
if(GetPlayerScore(playerid) < 10)
{
new Text3D:label = Create3DTextLabel("Private",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.4);
}
if(GetPlayerScore(playerid) < 50)
{
new Text3D:label1 = Create3DTextLabel("Private First Class",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label1, playerid, 0.0, 0.0, 0.4);
}
if(GetPlayerScore(playerid) < 100)
{
new Text3D:label2 = Create3DTextLabel("Corporal",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label2, playerid, 0.0, 0.0, 0.4);
}
if(GetPlayerScore(playerid) < 200)
{
new Text3D:label3 = Create3DTextLabel("Sergeant",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label3, playerid, 0.0, 0.0, 0.4);
}
if(GetPlayerScore(playerid) < 300)
{
new Text3D:label4 = Create3DTextLabel("Staff Sergeant",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label4, playerid, 0.0, 0.0, 0.4);
}
if(GetPlayerScore(playerid) < 500)
{
new Text3D:label5 = Create3DTextLabel("Sergeant First Class",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label5, playerid, 0.0, 0.0, 0.4);
}
if(GetPlayerScore(playerid) < 600)
{
new Text3D:label6 = Create3DTextLabel("Master Sergeant",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label6, playerid, 0.0, 0.0, 0.4);
}
if(GetPlayerScore(playerid) >= 600)
{
new Text3D:label7 = Create3DTextLabel("Commander",GREEN, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label7, playerid, 0.0, 0.0, 0.4);
}
// Rest of the code