07.08.2011, 18:54
Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, FloatrawDistance, virtualworld, testLOS)
Create3DTextLabel("Human",Blanco,30.0,40.0,50.0,40 .0,0,//you are missing testLOS);
use this one:
label[playerid] = Create3DTextLabel("Human",Blanco,30.0,40.0,50.0,40 .0,0,1);
EDIT: Complete code:
Create3DTextLabel("Human",Blanco,30.0,40.0,50.0,40 .0,0,//you are missing testLOS);
use this one:
label[playerid] = Create3DTextLabel("Human",Blanco,30.0,40.0,50.0,40 .0,0,1);
EDIT: Complete code:
PHP код:
if(Equipo[playerid] == E_Zombie)
{
new rand = random(sizeof(ZombieSpawn));
SetPlayerPos(playerid, ZombieSpawn[rand][0], ZombieSpawn[rand][1]);
SetPlayerColor(playerid, Rojo);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 41, 99999);
GameTextForPlayer(playerid,"~r~Zombie",4000,1);
label[playerid] = Create3DTextLabel("Zombie",Rojo,30.0,40.0,50.0,40.0,0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}
if(Equipo[playerid] == E_Human)
{
new rand = random(sizeof(HumanSpawn));
SetPlayerPos(playerid, HumanSpawn[rand][0], HumanSpawn[rand][1]);
SetPlayerColor(playerid, Blanco);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 44, 1);// DOnt use Nightvision, will effect on whole server!
GivePlayerWeapon(playerid, 9, 1);
GivePlayerWeapon(playerid, 16, 5);
GameTextForPlayer(playerid,"~w~Human",4000,1);
label[playerid] = Create3DTextLabel("Human",Blanco,30.0,40.0,50.0,40.0,0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}