/Fakekill
#7

Toma prueba de esta manera:

pawn Код:
if(strcmp("/fakechat", cmdtext, true, 9)== 0)
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
new escolherid[256];
new mensagem[256];
escolherid = KcmD(1, cmdtext);
mensagem = KcmD(2, cmdtext);
new loco[128];
if(!strlen(escolherid))
{
SendClientMessage(playerid,COLOR_WHITE,"USE: /fakechat [id] [texto]");
return 1;
}
if(!strlen(mensagem))
{
SendClientMessage(playerid,COLOR_WHITE,"USE: /fakechat [id] [texto]");
return 1;
}
format(loco,sizeof(loco),"%s[%d] %s",sendername,playerid,mensagem);
SendClientMessage(strval(escolherid),COLOR_LIGHTRED,loco);
return 1;
}
Esto en donde tienes los Stock:

pawn Код:
stock KcmD(param, cmdtext[])
{
    new string[128], pos, var;
    format(string, sizeof(string), "%s ", cmdtext);

    while((pos = strfind(string, " ", true)) != -1) {
        if(var == param) return string;
        var++;

        strdel(string, 0, pos + 1);
        if(strcmp(string, " ", true, pos) == 0) goto end;
    }

    end:
    string[0] = '\0';
    return string;
}
Fijate si te funca jeje

Creditos de esto:
-******- (Portugues)
Reply


Messages In This Thread
/Fakechat - by Blackfuck - 22.10.2011, 16:11
Respuesta: /Fakekill - by [J]ulian - 22.10.2011, 16:26
Re: /Fakekill - by digman - 22.10.2011, 17:03
Respuesta: /Fakekill - by Blackfuck - 22.10.2011, 17:06
Re: /Fakekill - by digman - 22.10.2011, 17:08
Respuesta: Re: /Fakekill - by Blackfuck - 22.10.2011, 17:09
Re: /Fakekill - by digman - 22.10.2011, 17:27
Re: /Fakekill - by Blackfuck - 22.10.2011, 17:45
Re: /Fakekill - by digman - 22.10.2011, 17:48
Re: /Fakekill - by Blackfuck - 22.10.2011, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)