[Ajuda] /algemar [ID] [MOTIVO]
#2

@edit.
arrumado pequeno error.
pawn Код:
CMD:algemar(playerid, params[])
{
    if(CSMBR[playerid] == ROTA) // VERIFICA SE Й POLICIAL
    {
    new PTiD, motivo[128], motmsg[128];
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    GameTextForPlayer(PTiD, "~b~ALGEMADO!", 3000, 0);
    if(sscanf(params, "us[128]", PTiD, motivo)) return SendClientMessage(playerid, -1, "Uso: /algemar [ID] [MOTIVO]");
    if(!IsPlayerInRangeOfPoint(PTiD, 1.0,  x,y,z)) return SendClientMessage(playerid, -1, "Chegue perto do jogador para algemar.");
    GetPlayerPos(PTiD, x, y, z);
    SetPlayerAttachedObject(PTiD, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
    format(motmsg,128," Voce foi algemado! Motivo : %s ", motivo);
    SendClientMessage(PTiD, -1, motmsg);
    SetPlayerSpecialAction(PTiD, SPECIAL_ACTION_CUFFED);
    PlayerPlaySound(playerid, 5201, x,y,z);
    }
    else
    {
    SendClientMessage(playerid, 0xAA3333AA, " VOCК NГO Й POLICIAL!");
    }
    return 1;
}
Reply


Messages In This Thread
/algemar [ID] [MOTIVO] - by davi54723 - 14.02.2013, 02:54
Re: AJUDA - /algemar [ID] [MOTIVO] - by Nill.Oliveira - 14.02.2013, 03:04
Re: AJUDA - /algemar [ID] [MOTIVO] - by Equipe - 14.02.2013, 03:12
Re: AJUDA - /algemar [ID] [MOTIVO] - by Nill.Oliveira - 14.02.2013, 03:16
Re: AJUDA - /algemar [ID] [MOTIVO] - by Equipe - 14.02.2013, 03:21
Re: AJUDA - /algemar [ID] [MOTIVO] - by Nill.Oliveira - 14.02.2013, 03:25
Re: /algemar [ID] [MOTIVO] - by davi54723 - 14.02.2013, 19:59
Re: /algemar [ID] [MOTIVO] - by Nill.Oliveira - 14.02.2013, 20:07
Re: /algemar [ID] [MOTIVO] - by davi54723 - 14.02.2013, 20:11
Re: /algemar [ID] [MOTIVO] - by Joao Pedro - 14.02.2013, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)