05.12.2011, 03:18
bom, nгo sei oque estou fazendo mas nao consigo fazer aparecer esse textdraw no servidor.
new Text:caminhoneiro[MAX_PLAYERS]; // topo
public OnPlayerRequestClass(playerid, classid)
{
PlayerPlaySound(playerid,1097,1955.8129,-2181.6062,13.5865);
SetPlayerPos(playerid,2480.3538,1870.8656,24.3753) ;
SetPlayerCameraPos(playerid,2473.7202,1870.9253,25 .7971);
SetPlayerCameraLookAt(playerid,2480.3538,1870.8656 ,24.3753);
SetPlayerFacingAngle(playerid,86.925;
switch(classid)
{
case 0..6:
{
TextDrawShowForPlayer(playerid,caminhoneiro[playerid]);
GameTextForPlayer(playerid,"~g~~h~Trucker",2500,3) ;
gTeam[playerid] = TEAM_TRUCKERS;
}
public OnPlayerConnect(playerid)
{
caminhoneiro[playerid] = TextDrawCreate(530.000000, 410.000000, " ");
TextDrawBackgroundColor(caminhoneiro[playerid], 255);
TextDrawFont(caminhoneiro[playerid], 2);
TextDrawLetterSize(caminhoneiro[playerid], 0.290000, 1.400000);
TextDrawColor(caminhoneiro[playerid], -1);
TextDrawSetOutline(caminhoneiro[playerid], 1);
TextDrawSetProportional(caminhoneiro[playerid], 1);
}
new Text:caminhoneiro[MAX_PLAYERS]; // topo
public OnPlayerRequestClass(playerid, classid)
{
PlayerPlaySound(playerid,1097,1955.8129,-2181.6062,13.5865);
SetPlayerPos(playerid,2480.3538,1870.8656,24.3753) ;
SetPlayerCameraPos(playerid,2473.7202,1870.9253,25 .7971);
SetPlayerCameraLookAt(playerid,2480.3538,1870.8656 ,24.3753);
SetPlayerFacingAngle(playerid,86.925;
switch(classid)
{
case 0..6:
{
TextDrawShowForPlayer(playerid,caminhoneiro[playerid]);
GameTextForPlayer(playerid,"~g~~h~Trucker",2500,3) ;
gTeam[playerid] = TEAM_TRUCKERS;
}
public OnPlayerConnect(playerid)
{
caminhoneiro[playerid] = TextDrawCreate(530.000000, 410.000000, " ");
TextDrawBackgroundColor(caminhoneiro[playerid], 255);
TextDrawFont(caminhoneiro[playerid], 2);
TextDrawLetterSize(caminhoneiro[playerid], 0.290000, 1.400000);
TextDrawColor(caminhoneiro[playerid], -1);
TextDrawSetOutline(caminhoneiro[playerid], 1);
TextDrawSetProportional(caminhoneiro[playerid], 1);
}