11.03.2011, 15:30
Nao sei se voce ja conseguiu mais ta aew.
Esse eu uso no meu gm ai se adapta ali os Rank
pawn Код:
if(strcmp(cmd, "/chatvip", true) == 0 || strcmp(cmd, "/vp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
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_GRAD2, "USO: (/vp)vip [chat]");
return 1;
}
else if(PlayerInfo[playerid][pDonateRank] ==1)
{
format(string, sizeof(string), "|-Vip Simples-|%s: %s, cвmbio. ", sendername, result);
SendClientMessage(playerid, BLUE, string);
printf("%s", string);
return 1;
}
else if(PlayerInfo[playerid][pDonateRank] ==2)
{
format(string, sizeof(string), "|-Vip Ouro-|%s: %s, cвmbio. ", sendername, result);
SendClientMessage(playerid, COLOR_OOC, string);
printf("%s", string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, " Vocк nгo pode usar o rбdio !");
return 1;
}
}
return 1;
}