Need help
#5

PHP код:
new text[128];
new 
attachedtext[MAX_PLAYERS];
new 
Text3D:label;
public 
OnPlayerConnect(playerid)
{
    
attachedtext[playerid]=0;
    return 
1;
}
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;

I already had that on the top so i can remove it later with cmd
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)