Posts: 86
Threads: 13
Joined: Jul 2010
Reputation:
0
Well, All I want is one of you copy and paste or make the command Which let me use the /spho [modelid] [bone] In Game
The help would be appreciated..
Exemple
/spho 1609 2 it just attach a turtle to the playerid's head in game.
Posts: 86
Threads: 13
Joined: Jul 2010
Reputation:
0
Nah, I meant I want to write
/spho [AnyobjectID] [AnyBone]
in game..
understood ?
Posts: 734
Threads: 8
Joined: Jun 2009
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;
}
Posts: 844
Threads: 32
Joined: Apr 2009
Reputation:
0
dcmd_ and zcmd + sscanf are easiest
else u need to make strtok, strlen and all that shit :P