11.03.2011, 04:42
Eu tentei uns carai a 4, tentei deixar o anъncio e fazer um cmd de chat e tal e nгo deu certo...
peguei do thug e coloquei no meu gm:
peguei do thug e coloquei no meu gm:
pawn Код:
CMD:vipchat(playerid, params[])
{
new string[128];
new cmdtext[256];
new idx;
if(IsPlayerConnected(playerid) && PlayerInfo[playerid][VIP] >= 1)
{
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))
{
SendClientMessage(playerid, COLOR_RED, "USE: /vipchat [texto]");
return 1;
}
format(string, sizeof(string), "** VIP %s: %s", sendername, result);
SendClientMessage(playerid,0xFFCCFFAA,string);
printf("** VIP %s: %s", sendername, result);
}
return 1;
}