dcmd_ostick(playerid, params[])
{
new bone, model, slot;
new Float:offset[3];
new Float:rot[3];
new Float:scale[3];
if(sscanf(params, "iiI(1)F(0.0)F(0.0)F(0.0)F(0.0)F(0.0)F(0.0)F(1.0)F(1.0)F(1.0)", slot, model, bone, offset[0], offset[1], offset[2], rot[0], rot[1], rot[2], scale[0], scale[1], scale[2]))
{
// errors (removed, un-neccesary, makes more code to look at)
}
printf("%f", scale[2]);
SetPlayerAttachedObject(playerid, slot, model, bone, offset[0], offset[1], offset[2], rot[0], rot[1], rot[2], scale[0], scale[1], scale[2]);
return 1;
}
Originally Posted by server_log.txt
[21:07:40] [cmd] [Jacob]: /ostick 0 1238 2 0 0 0 0 0 0 1.3 1.3 1.3
[21:07:40] 1.299999 [21:07:44] [cmd] [Jacob]: /ostick 0 1238 2 0 0 0 0 0 0 1.5 1.5 1.5 [21:07:44] 1.500000 [21:07:45] [cmd] [Jacob]: /ostick 0 1238 2 0 0 0 0 0 0 1.3 1.3 1.3 [21:07:45] 1.299999 |