28.02.2013, 12:45
Simple 3dtextlabel attach to player when he enter /sumo, but only for one player, for other okay, why? This label shows how many people in first ant second team. Photo: http://www.part.lt/perziura/658e2d8d...a156533630.png
3Dtextlabel create:
(this is timer which update how many people are in team)
And this is sumo cmd:
Previously was all good.
3Dtextlabel create:
Код:
new Text3D:dmtext;
Код:
public OnGameModeInit() { dmtext = Create3DTextLabel("Ћaidėju: 0",0xDEEE20FF,1358.8925,1800.1381,3313, 40.0,0,0); return 1; }
Код:
public tmdma(playerid) { new str[128]; format(str,sizeof(str),"Komanda 1: %d ћaidėjai \nKomanda 2: %d ћaidėjai",Komanda1, Komanda2); Update3DTextLabelText(dmtext,0xDEEE20FF,str); }
And this is sumo cmd:
Код:
COMMAND:sumo( playerid, params[ ] ) { for(new i; i < MAX_PLAYERS; i++) { if(Sumoprasidejes[i]) return SendClientMessage(playerid, 0xDEEE20FF, "Registracija uћdaryta!"); } if(Sumo[playerid]) return SendClientMessage(playerid, 0xDEEE20FF, "Jūs jau esate Sumo!"); if(DM[playerid]) return SendClientMessage(playerid, 0xDEEE20FF, "Jūs DM zonoje!"); if(TMDM[playerid]) return SendClientMessage(playerid, 0xDEEE20FF, "Jūs Team DM zonoje!"); SetPlayerPos(playerid,1573.4785,-1238.2092,278); SendClientMessage(playerid, 0xDEEE20FF, "Norėdami iљeiti raљykite /isumo."); Sumo[playerid] = true; sumo[playerid] = Create3DTextLabel("Uћsiregistravęs", 0xFF6347AA, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(sumo[playerid], playerid, 0.0, 0.0, 0.6); return 1; }