//somewhere on the top new PlayerText3D:label; new teststate; //command CMD:test(playerid,params[]) { if(IsPlayerAdmin(playerid)) { if( teststate== 0) { teststate=1; new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); label = CreatePlayer3DTextLabel(playerid,"Test",PURPLE,x,y,z,40.0,0,0); SendClientMessage(playerid,YELLOW,"LabelCreated"); } else if(teststate == 1) { teststate=0; DeletePlayer3DTextLabel(playerid,label); SendClientMessage(playerid,YELLOW,"Labeldeleted"); } } else { SendClientMessage(playerid, RED, "ERROR"); } return 1; }
label = CreatePlayer3DTextLabel(playerid,"Test",PURPLE,x,y,z,40.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0); //or if you want the attach it to a player CreatePlayer3DTextLabel(playerid,"Test",PURPLE,x,y,z,40.0,playerid,INVALID_VEHICLE_ID,0) //or a car CreatePlayer3DTextLabel(playerid,"Test",PURPLE,x,y,z,40.0,INVALID_PLAYER_ID,vehicleid,0)
DrawDistance The distance from where you are able to see the 3D Text Label VirtualWorld The virtual world in which you are able to see the 3D Text testLOS 0/1 Test the line-of-sight so this text can't be seen through objects
Create3DTextLabel("Test", 0x008080FF, x, y, z, 40.0, 0, 0);
if(teststate == 0)
label = CreatePlayer3DTextLabel(playerid,"Test",PURPLE,x,y ,z,0,0);
You need Код:
DrawDistance The distance from where you are able to see the 3D Text Label VirtualWorld The virtual world in which you are able to see the 3D Text testLOS 0/1 Test the line-of-sight so this text can't be seen through objects Код:
Create3DTextLabel("Test", 0x008080FF, x, y, z, 40.0, 0, 0); Код:
if(teststate == 0) |
label = CreatePlayer3DTextLabel(playerid,"Test",PURPLE,x,y,z,40.0,0,0);
if((teststate)==0) { teststate=1;
Maybe because you are setting the player right into the state
Код:
if((teststate)==0) { teststate=1; |