Code
else if(strcmp(cmd, "/vip", true) == 0 || strcmp(cmd, "/v", true) == 0)// вип чат
{
if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 1500)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result)) return SendClientMessage(playerid, COLOR_WHITE, "Eniieuciaaiea: /vip [oaeno]");
format(string, sizeof(string), "*V.I.P* %s[%d]: %s", sendername, playerid,result);
{
SendAdminMessage(COLOR_LIME, string);
}
}
return 1;
}