22.11.2009, 10:54
How do i insert text on every character?
public OnPlayerRequestClass(playerid,classid)
{
if(classid == 0)
{
GameTextForPlayer(playerid, "~r~this is a text on top of the character", 3000, 4);
}
else
{
GameTextForPlayer(playerid, "~b~and so is this", 3000, 4);
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,0.0);
SetPlayerPos(playerid,-1521.0341,677.5056,139.2734);
SetPlayerCameraPos(playerid,-1524.9583,681.2976,136.5882);
SetPlayerCameraLookAt(playerid,-1521.0341,677.5056,139.2734);
{
{
if(classid == 0)
{
GameTextForPlayer(playerid, "member 1", 3000, 4);
}
if(classid == 2)
{
GameTextForPlayer(playerid, "member 2", 3000, 4); // And so on......
}
else
{
GameTextForPlayer(playerid, "member 3", 3000, 4);
}
return 1;
}
}
}