06.02.2017, 12:12 
	(
 Последний раз редактировалось SaiyanZ; 06.02.2017 в 13:45.
)
	
	
		Hello.
I was trying to make /settext [id] [text]
It will just create 3d text on player's head but when i type /text in game it says "Unknown command"
Is there any any problem?
	
	
	
	
I was trying to make /settext [id] [text]
It will just create 3d text on player's head but when i type /text in game it says "Unknown command"
Is there any any problem?
PHP код:
CMD:settext(playerid, params[])
    {
    new id, string[128];
    if(!IsPlayerAdmin(playerid)) return 0;
    if(sscanf(params, "ui", id, text)) return SendClientMessage(playerid, -1, "USAGE: /settext [ID] [Text]");
    if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Player not connected!");
    if(attachedtext[id]==1) return SendClientMessage(playerid, -1, "SERVER: Player already has a text attached, /deltext first!");
    label = Create3DTextLabel(text, 0xAA3333AA, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, id, 0.0, 0.0, 0.7);
    format(string, 128, "SERVER: Text '%s' has appeared on your head", text);
    SendClientMessage(id, -1, string);
    attachedtext[id]=1;
    return 1;
} 




