08.06.2011, 17:17
that's my script and i don't know why it's not working... any sugestion
Код:
new Text3D:label[MAX_PLAYERS];
Код:
public OnPlayerDisconnect(playerid, reason) { Delete3DTextLabel(label[playerid]); return 1; }
Код:
public OnPlayerSpawn(playerid) { Delete3DTextLabel(label[playerid]); if(team[playerid] == 1) { label[playerid] = Create3DTextLabel("Human",0xAA3333AA, 0, 0, 0, 40, 0); Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); return 1; } if(team[playerid] == 2) { label[playerid] = Create3DTextLabel("Zombie",0xAA3333AA, 0, 0, 0, 40, 0); Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); return 1; } if(team[playerid] == 3) { label[playerid] = Create3DTextLabel("Zombie",0xAA3333AA, 0, 0, 0, 40, 0); Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); return 1; } return 1; }
Код:
public OnPlayerDeath(playerid, killerid, reason) { Delete3DTextLabel(label[playerid]); }