30.11.2010, 11:55
Fiz o comando pra vocк:
Espero ter ajudado
pawn Код:
if(strcmp(cmd, "/status", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new owned[MAX_PLAYER_NAME];
GetPlayerName(playerid, owned, sizeof(owned));
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, 0xFFFFFFAA, "USE: /status [aзгo]");
return 1;
}
format(string, sizeof(string), "%s %s", owned, result);
SetPlayerChatBubble(playerid, string, 0xFF6347AA, 100.0, 9999999);
}
return 1;
}
Espero ter ajudado