03.05.2012, 22:22
Galera naum consigo coloca esse textdraw no comando q cria carro
colocar esse text q fica em cima do carro
comando q cria o carro
Se me ajudarem agradeзo muito. GRATO!
colocar esse text q fica em cima do carro
pawn Код:
new Text3D:textcar;//topo
stock aCreateThing(playerid, thingid, orderid)
{
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
if(thingid != 597)
{
Vehicle[orderid] = CreateVehicle(thingid, X, Y, Z + 3, Angle, random(126), random(126), 30);
}
else
{
Vehicle[orderid] = CreateVehicle(thingid, X, Y, Z + 3, Angle, 0, 1, 30);
}
new s[50],n[24];
GetPlayerName(playerid, n, 24);
format(s, 50, "Veiculo de %s [%d]", n, playerid);
textcar = Create3DTextLabel(s, -1, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( text, Vehicle[orderid], 0.0, 0.0, 2.0);
PutPlayerInVehicle(playerid, Vehicle[orderid], 0);
TogglePlayerControllable(playerid, true);
return 1;
}
pawn Код:
if(strcmp(cmdtext, "/c", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,0xCC020299,"[ERRO]: Vocк jб tem um veнculo ANTA !!!");
} else {
new VehicleID;
new Float:X,Float:Y,Float:Z,Float:Angle; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
VehicleID = CreateVehicle(411,X,Y,Z,0,-1,-1,-1); PutPlayerInVehicle(playerid,VehicleID,0);
SetVehicleVirtualWorld(VehicleID, GetPlayerVirtualWorld(playerid));
SendClientMessage(playerid,0xCC020299, "[INFO]{FFFF00} Agora vocк tem um INFERNUS !!!");
SendClientMessage(playerid,0xFFA60099, "Para tunar seu veiculo use /TUNAR para deixar seu carro super loko!");
SendClientMessage(playerid,0xFFA60099, "Duvidas sobre carro use /CMDCARROS");
}
return 1;
}