Animation doesn't show up
#2

pawn Код:
CMD:ant(playerid, params[])
{
    new
        vardas[MAX_PLAYER_NAME],
        msg[128],
        policeman[MAX_PLAYER_NAME],
        name[MAX_PLAYER_NAME]
    ;
    if( sscanf( params,"z",vardas ) ) return SendClientMessage(playerid,-1, "{FFC400}»{949494} Norint surakinti įtariamąjį naudokite /ant {FFC400}V_P{949494}.");
    new id = GetPlayeridMid(vardas);
    if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "{FFC400}»{949494} Dėja, tokio žaidėjo nėra.");
    if(id == playerid) return SendClientMessage(playerid, -1, "{FFC400}»{949494} Dėja, savęs surakinti negalite.");
    new Float:poz[3];
    GetPlayerPos(id, poz[0], poz[1], poz[2]);
    if(!PlayerToPoint(3, playerid, poz[0],poz[1],poz[2])) return SendClientMessage(playerid, -1, "{FFC400}»{949494} Dėja, žaidėjas per toli nuo jūsų.");
    GetPlayerName(playerid,policeman,sizeof(policeman));
    GetPlayerName(id,name,sizeof(name));
    if(playerDB[id][surakintas])
    {
        playerDB[id][surakintas]=false;
        TogglePlayerControllable(id,true);
        RemovePlayerAttachedObject(id,0);
        SetPlayerSpecialAction(id,SPECIAL_ACTION_NONE);
        format(msg,sizeof(msg),"{FFC400}»{949494} Paleidote įtariamąjį{FFC400}: {FFC400}{949494}%s.",name);
        SendClientMessage(playerid,-1,msg);
        format(msg,sizeof(msg),"{FFC400}»{949494} Jus paleido{FFC400}: {FFC400}{949494}%s pareigūnas.",policeman);
        SendClientMessage(id,-1,msg);
    }
    else
    {
        playerDB[id][surakintas]=true;
        TogglePlayerControllable(id,false);
        SetPlayerAttachedObject(id,0,19418,5,0.016000,0.032000,0.025000,17.500005,-10.099991,-48.099990,1.0,1.0,1.0 );
        SetPlayerSpecialAction(id, SPECIAL_ACTION_CUFFED );
        format(msg,sizeof(msg),"{FFC400}»{949494} Surakinote įtariamąjį{FFC400}: {FFC400}{949494}%s.",name);
        SendClientMessage(playerid,-1,msg);
        format(msg,sizeof(msg),"{FFC400}»{949494} Jus surakino{FFC400}: {FFC400}{949494}%s pareigūnas.",policeman);
        SendClientMessage(id,-1,msg);
    }
    return 1;
}
Reply


Messages In This Thread
Animation doesn't show up - by bogushas - 17.01.2014, 17:16
Re: Animation doesn't show up - by Eth - 17.01.2014, 17:18
Re: Animation doesn't show up - by bogushas - 17.01.2014, 17:22
Re: Animation doesn't show up - by Eth - 17.01.2014, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)