08.10.2014, 18:44
try this example i got from a tutorial see if it works?
or strcmp
pawn Код:
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;
}
pawn Код:
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;
}