20.05.2012, 18:48
Como faзo pra o
Attach3DTextLabelToPlayer
reconheзer a string para aparecer o nome do clan
Attach3DTextLabelToPlayer
reconheзer a string para aparecer o nome do clan
pawn Код:
public TextoClan()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
new string[256];
new aname[MAX_PLAYER_NAME];
GetPlayerName(i, aname, MAX_PLAYER_NAME);
if (IsPlayerConnected(i))
{
if (dini_Int(file, "TClan") == 1)
{
format(string, sizeof(string), "/Clans/clan%d.ini", dini_Int(file, "Clan"));
format(string, sizeof(string), "Clan: %s", dini_Get(string, "Nome"));
if (dini_Int(string, "TMembro1") == 1 && strcmp(dini_Get(string, "Membro1"), aname, true) == 0)
{
new Text3D:label = Create3DTextLabel("%s", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.7);
}
else
{
new Text3D:label = Create3DTextLabel("%s", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.7);
}
}
}
}
return 1;
}