Ayuda 3D Labbel
#1

Buenas

Lo que estoi intentando hacer es que al poner el comando /lock (del ladmin) quiero que le aparezca al vehiculo
un 3d labbel que diga Vehicle locked by:

Sabeis como lo podria hacer?
Reply
#2

pawn Код:
new Text3D: Owner[MAX_PLAYERS];

if (!strcmp(cmdtext, "/lock", true))
{
    new szString[128], Nombre[24], Float: x, Float: y, Float: z;
    GetPlayerName(playerid, Nombre, sizeof(Nombre));
    GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
    format(szString, sizeof(szString), "Locked by %s", Nombre);
    Owner[playerid] = Create3DTextLabel(szString, 0xFFFFFFAA, 0.0, 0.0, 0.0, 40.0, 0);
    Attach3DTextLabelToVehicle(Owner[playerid], GetVehiclePos(playerid), x, y, z);
    // Demas funciones.
    return 1;
}
Creo que ahi deberia funcionar solo aсadele la funcion para bloquear el vehiculo.
Saludos.
Reply
#3

pawn Код:
C:\Users\Valentino\Desktop\Rat's propiety\0.3b Server Samp1\filterscripts\ladmin4v2.pwn(1411) : warning 202: number of arguments does not match definition
C:\Users\Valentino\Desktop\Rat'
s propiety\0.3b Server Samp1\filterscripts\ladmin4v2.pwn(1411) : warning 202: number of arguments does not match definition
C:\Users\Valentino\Desktop\Rat's propiety\0.3b Server Samp1\filterscripts\ladmin4v2.pwn(1411) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Linea 1411:

pawn Код:
Attach3DTextLabelToVehicle(Owner[playerid], GetVehiclePos(playerid), x, y, z);
Reply
#4

Quote:
Originally Posted by RatHack
Посмотреть сообщение
pawn Код:
C:\Users\Valentino\Desktop\Rat's propiety\0.3b Server Samp1\filterscripts\ladmin4v2.pwn(1411) : warning 202: number of arguments does not match definition
C:\Users\Valentino\Desktop\Rat'
s propiety\0.3b Server Samp1\filterscripts\ladmin4v2.pwn(1411) : warning 202: number of arguments does not match definition
C:\Users\Valentino\Desktop\Rat's propiety\0.3b Server Samp1\filterscripts\ladmin4v2.pwn(1411) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Linea 1411:

pawn Код:
Attach3DTextLabelToVehicle(Owner[playerid], GetVehiclePos(playerid), x, y, z);
Perdona me confundi xD reemplazala a:
pawn Код:
Attach3DTextLabelToVehicle(Owner[playerid], GetPlayerVehicleID(playerid), x, y, z);
Saludos
Reply
#5

Me sirviу, gracias, un puntito para tн

/lock
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)