25.07.2011, 16:43
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;
}
Saludos.