SetPlayerHoldingObject
#4

This is an example using zcmd + sscanf2:

pawn Код:
COMMAND:spho(playerid, params[])
{
    new
        giveplayerid,
        b1, b2;
       
    if(sscanf(params, "udd", giveplayerid, b1, b2)) return SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /spho [playerid/PartOfName] [modelid] [bone]");
   
    if(giveplayerid != INVALID_PLAYER_ID)
    {
        SetPlayerHoldingObject(giveplayerid, b1, b2);
        SendClientMessage(playerid, COLOR_WHITE, "Object successfully attached!");
    }
    return true;
}
Reply


Messages In This Thread
SetPlayerHoldingObject - by Hamza' - 25.09.2010, 16:40
Re: SetPlayerHoldingObject - by CyNiC - 25.09.2010, 16:43
Re: SetPlayerHoldingObject - by Hamza' - 25.09.2010, 16:45
Re: SetPlayerHoldingObject - by Virtual1ty - 25.09.2010, 16:48
Re: SetPlayerHoldingObject - by Hamza' - 25.09.2010, 17:05
Re: SetPlayerHoldingObject - by Mike_Peterson - 25.09.2010, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)