22.03.2009, 16:57
ok heres my code:
if (strcmp(cmd, "/leaders", true) == 0)
{
{
SendClientMessage(playerid, COLOR_GRAD1, "Leaderiai Prisijunge:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
{
if(PlayerInfo[i][pLeader] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Faru Leaderis: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
but when i leave the game player dont see my nick anymore... a little help?
if (strcmp(cmd, "/leaders", true) == 0)
{
{
SendClientMessage(playerid, COLOR_GRAD1, "Leaderiai Prisijunge:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
{
if(PlayerInfo[i][pLeader] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Faru Leaderis: %s", sendername);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
}
}
}
return 1;
}
but when i leave the game player dont see my nick anymore... a little help?