17.07.2015, 04:28
I have made a /me command and I have tried adding a 3D text label to show up every time someone uses the command but it doesn't show up at all.
pawn Код:
CMD:me(playerid, params[])
{
new string[400];
if(pLoggedIn[playerid] == false)
{
SendClientMessage(playerid, -1, "[ERROR] You must first sign in before using this command.");
return 1;
}
if(strlen(params) > 400)
{
SendClientMessage(playerid, -1, "[ERROR] Maximum length is 400 words!");
return 1;
}
if(sscanf(params, "s[400]", params))
{
SendClientMessage(playerid, -1, "USAGE: /me (action).");
return 1;
}
format(string, sizeof(string), "%s %s", RemoveUnderscore(playerid), params);
ProxDetector(30.0, playerid, string, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA);
action = Create3DTextLabel(string, 0xC2A2DAAA, 30.0, 40.0, 50.0, 30.0, 0, 1);
Attach3DTextLabelToPlayer(action, playerid, 0.0, 0.0, 0.7);
RemoveText[playerid] = 10;
return 1;
}