[Ajuda] /anuncio
#5

pawn Код:
if(!strcmp(cmd,"/anuncio",true))
{
    tmp = strtok(cmdtext,idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, -1, "(erro): /anuncio [text]");
    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;
    new sStr[120],nome[MAX_PLAYER_NAME];GetPlayerName(playerid,nome,sizeof(nome));
    format(sStr,sizeof(sStr),"Anъncio %s: %s",nome,(result));
    SendClientMessageToAll(-1,sStr);
    return 1;
}
Reply


Messages In This Thread
[Ajuda] /anuncio - by Don_Speed - 05.10.2011, 20:03
Re: [Ajuda] /anuncio - by Jason` - 05.10.2011, 20:06
Re: [Ajuda] /anuncio - by Don_Speed - 05.10.2011, 20:08
Re: [Ajuda] /anuncio - by Jason` - 05.10.2011, 20:09
Re: [Ajuda] /anuncio - by WLSF - 05.10.2011, 20:10
Re: [Ajuda] /anuncio - by Jason` - 05.10.2011, 20:16
Re: [Ajuda] /anuncio - by WLSF - 05.10.2011, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)