How to add textdraw on player's head?
#7

PHP код:
CMD:helperduty(playeridparams[])
{
    if (
pInfo[playerid][Helper] < 1)
        return 
SendClientMessage(playerid,COLOR_WHITE"U aint helper.");
    if (!
pInfo[playerid][pHelperDuty])
    {
        
SetPlayerColor(playerid,COLOR_GREEN);
      new 
Text3D:label Create3DTextLabel("HELPER DUTY - DON'T SHOOT"0x008080FF30.040.050.040.00);
    
Attach3DTextLabelToPlayer(helpdutyplayerid0.00.00.7);
        
pInfo[playerid][pHelperDuty] = 1;
        new 
string[128];
        
GetPlayerName(playeridstring24);
        
format(stringsizeof(string), "{FF0000} %s is now helperdutyr" ,string);
        
SendClientMessageToAll(-1string);
    }
    else
    {
        
SetPlayerColor(playeridCOLOR_WHITE);
          
DeletePlayer3DTextLabel(playerid,helpduty);
        
pInfo[playerid][pHelperDuty] = 0;
        new 
str[76], name[24];
        
GetPlayerName(playeridname24);
        
format(strsizeof(str), "{FF0000}%s no more helperduty"name);
        
SendClientMessageToAll(COLOR_GREENstr);
    }
    return 
1;

is that good?
Reply


Messages In This Thread
How to add textdraw on player's head? - by Zeus666 - 27.07.2016, 10:19
Re: Expected ; found , - by Konstantinos - 27.07.2016, 10:19
Re: How to add textdraw on player's head? - by Zeus666 - 27.07.2016, 10:21
Re: How to add textdraw on player's head? - by Quinncell - 27.07.2016, 11:19
Re: How to add textdraw on player's head? - by Zeus666 - 27.07.2016, 11:23
Re: How to add textdraw on player's head? - by Quinncell - 27.07.2016, 11:25
Re: How to add textdraw on player's head? - by Zeus666 - 27.07.2016, 11:28
Re: How to add textdraw on player's head? - by Quinncell - 27.07.2016, 11:31
Re: How to add textdraw on player's head? - by Zeus666 - 27.07.2016, 11:37
Re: How to add textdraw on player's head? - by Quinncell - 27.07.2016, 11:44

Forum Jump:


Users browsing this thread: 3 Guest(s)