Need help
#1

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?
PHP код:
CMD:settext(playeridparams[])
    {
    new 
idstring[128];
    if(!
IsPlayerAdmin(playerid)) return 0;
    if(
sscanf(params"ui"idtext)) 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(text0xAA3333AA30.040.050.040.00);
    
Attach3DTextLabelToPlayer(labelid0.00.00.7);
    
format(string128"SERVER: Text '%s' has appeared on your head"text);
    
SendClientMessage(id, -1string);
    
attachedtext[id]=1;
    return 
1;

Reply


Messages In This Thread
Settext cmd - by SaiyanZ - 06.02.2017, 12:12
Re: Need help - by AndreiWow - 06.02.2017, 12:38
Re: Need help - by SaiyanZ - 06.02.2017, 12:44
Re: Need help - by antoaneu - 06.02.2017, 13:03
Re: Need help - by SaiyanZ - 06.02.2017, 13:14
Re: Need help - by antoaneu - 06.02.2017, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)