Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: brak...
1. [INNE] rangi brak...
Witam.Posiadam komend? po kt?rej wpisaniu powinno nada? range.Wszystkie cmd takiej rangi dzia?aj? ,ale ju? ranga przy nicku gracza nie.Oto kod.

Kod:

CMD:vip(playerid, params[])
{
new pname[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, pname, sizeof(pname));
if( !strcmp(pname, "nick", true) || !strcmp(pname, "nick2", true) )
{
if(IsPlayerConnected(playerid))
{
if(!viq[playerid])
{
viq[playerid]=1;
SendClientMessage(playerid, -1, "zalogowano.");
return 1;
}
else if(viq[playerid])
{
SendClientMessage(playerid, -1, "juz sie zalogowales");
return 1;
}
}
}
else
{
Kick(playerid);
}
return 1;
}



I tu ranga.

Kod:

new nuda1[256];

if(viq[playerid])
{
format(nuda1, sizeof(nuda1), " (VIP %d): %s", playerid, text);
SendPlayerMessageToAll(playerid, nuda1);
return 0;
}


Za pomoc piwko i respekt.