help with 3dlabels
#1

label not showing and yes i tested it on other player

Код:
CMD:adminduty(playerid,params[])
{
	new string[128],pName[MAX_PLAYER_NAME];
	new Text3D:label[MAX_PLAYERS];
	if(PInfo[playerid][Level] < 1)
    return SendClientMessage(playerid,STEALTH_BLUE,"You need to be level 1 to go on admin duty.");
    CMDMessageToAdmins(playerid,"ADMINDUTY");
    if(PInfo[playerid][pAdminDuty] == 0)
	{
            PInfo[playerid][God] = 1;
            PInfo[playerid][GodCar] = 1;
            PInfo[playerid][pAdminDuty] = 1;
            SetPlayerHealth(playerid,100000);
    	    SetPlayerSkin(playerid,217);
    	    ResetPlayerWeapons(playerid);
    	    GivePlayerWeapon(playerid,38,99999);
			GetPlayerName(playerid,pName,sizeof pName);
			format(string,sizeof(string),"Administrator %s is now on Admin Duty.",pName);
			SendClientMessageToAll(COLOR_MENUHIGHLIGHT,string);
			label[playerid] = Create3DTextLabel("!!ADMIN ON DUTY\n DO NOT ATTACK!!!",COLOR_GREEN,30.0, 40.0, 50.0, 40.0, 0);
			Attach3DTextLabelToPlayer(label[playerid],playerid,0.0,0.0,0.7);
	}
	else
	{
            PInfo[playerid][God] = 0;
            PInfo[playerid][GodCar] = 0;
			PInfo[playerid][pAdminDuty] = 0;
       	    GetPlayerName(playerid,pName,sizeof pName);
			format(string,sizeof(string),"Administrator %s is now off Admin Duty.",pName);
			SendClientMessageToAll(COLOR_MENUHIGHLIGHT,string);
        	SetPlayerHealth(playerid,0.0);
        	Delete3DTextLabel(label[playerid]);
    }
    return 1;
}
Reply


Messages In This Thread
help with 3dlabels - by Nabster - 25.02.2015, 12:36
Re: help with 3dlabels - by Threshold - 25.02.2015, 12:47
Re: help with 3dlabels - by Nabster - 25.02.2015, 12:54
Re: help with 3dlabels - by Threshold - 25.02.2015, 13:33
Re: help with 3dlabels - by Nabster - 25.02.2015, 13:36
Re: help with 3dlabels - by Nabster - 26.02.2015, 11:34

Forum Jump:


Users browsing this thread: 1 Guest(s)