25.09.2010, 16:48
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;
}