[AJUDA]samp 0.3e
#6

Nгo conseguiu por um motivo simples, o cara fez um comando que usaria parвmetro usando cmdtext ao inves de cmd. Tente este:

pawn Код:
if(strcmp(cmd, "/algemar", true))
{
    new giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME], string[128];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "Uso Correto: /algemar [PlayerID]");
    giveplayerid = strval(tmp);
    if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, 0x1E90FF99, "Jogador Nгo conectado!");
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "O Jogador %s Algemou o Jogador %s!", sendername, giveplayer);
    SendClientMessageToAll(0x1E90FF99, string);    
    SetPlayerAttachedObject(giveplayerid, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
    SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED);
    return 1;
}
Ele tambйm nгo getou o nome do playerid, colocou um loop desnecessбrio entre outras coisas.
Reply


Messages In This Thread
[AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:05
Re: [AJUDA]samp 0.3e - by dPlaYer_ - 14.05.2012, 00:07
Re: [AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:08
Re: [AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:10
Re: [AJUDA]samp 0.3e - by After - 14.05.2012, 00:15
Re: [AJUDA]samp 0.3e - by Josma_cmd - 14.05.2012, 00:16
Re: [AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:25
Re: [AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:29
Re: [AJUDA]samp 0.3e - by Rick_FusioN - 14.05.2012, 00:32
Re: [AJUDA]samp 0.3e - by After - 14.05.2012, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)