[DUV]Tosca
#9

Fiz o comando pra vocк:

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
Reply


Messages In This Thread
[DUV]Tosca - by Andre_Elite - 29.11.2010, 19:18
Re: [DUV]Tosca - by Macintosh - 29.11.2010, 19:27
Re: [DUV]Tosca - by Andre_Elite - 29.11.2010, 19:29
Re: [DUV]Tosca - by Macintosh - 29.11.2010, 19:35
Re: [DUV]Tosca - by CyNiC - 29.11.2010, 19:52
Re: [DUV]Tosca - by Erick_Schultz - 29.11.2010, 21:17
Re: [DUV]Tosca - by Andre_Elite - 30.11.2010, 08:41
Re: [DUV]Tosca - by Macintosh - 30.11.2010, 11:04
Re: [DUV]Tosca - by rjjj - 30.11.2010, 11:55
Re: [DUV]Tosca - by TiagoPS - 30.11.2010, 13:07

Forum Jump:


Users browsing this thread: 3 Guest(s)