08.10.2014, 07:02
Hi all,i have some problem with SetPlayerAttachedObject,when i call this function with any object it will not show that object.
CMD:redcone(playerid, params[])
{
SetPlayerAttachedObject(playerid,3, 1238, 6); // Bone 6 means Right handed
SendClientMessage(playerid, COLOR_GREEN, "You are holding a Redcone.");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/redcone", true))
{
SetPlayerAttachedObject(playerid, 3, 1238, 6);
SendClientMessage(playerid, COLOR_GREEN, "You are holding a Redcone");
return 1;
}
return 0;
}