Callsign problem
#1

Hi, I have a problem with callsign system.
This system can work properly but when you added a callsign successfully, the callsign will disappears sometime.
I can't find out why it disappears but it disappears.
Thank you for your time, details here:




COMMAND:callsign(playerid, params[])
{
new tmpcar = GetPlayerVehicleID(playerid);
if(GetPVarInt(playerid, "Member") == 0 || GetPVarInt(playerid, "Member") == 1 || GetPVarInt(playerid, "Member") == 2 || GetPVarInt(playerid, "Member") == 3 || GetPVarInt(playerid, "Member") == 5 || GetPVarInt(playerid, "Member") == 6) return SendClientMessage(playerid, COLOR_WHITE, "[ERROE]:You are not a Law Enforcement Officer.");
if(IsPlayerInAnyVehicle(playerid))
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE,"用法: /callsign [内容]");
if(veicolo_callsign_status[tmpcar] == 0)
{
veicolo_callsign_testo[tmpcar] = Create3DTextLabel(params, 0xFFFFFFFF, 0.0, 0.0, 0.0, 15.0, 0, 1);
Attach3DTextLabelToVehicle(veicolo_callsign_testo[tmpcar], tmpcar, -0.7, -1.9, -0.3);
veicolo_callsign_status[tmpcar] = 1;
SendClientMessage(playerid, 0xFFFFFFFF ,"[LAW]Callsign added.");
}
else
{
Delete3DTextLabel(veicolo_callsign_testo[tmpcar]);
veicolo_callsign_status[tmpcar] = 0;
SendClientMessage(playerid, 0xFFFFFFFF ,"[LAW]Callsign removed.");
}
}
else
{
SendClientMessage(playerid,0xFFFFFFFF,"You need to be in a vehicle.");
}
return 1;
}
Reply
#2

Maybe because of this ?
PHP Code:
Create3DTextLabel = (text[], colorFloat:XFloat:YFloat:ZFloat:DrawDistancevirtualworldtestLOS
testLOS = 0/1 Test the line-of-sight so this text can't be seen through objects
Cr. https://sampwiki.blast.hk/wiki/Create3DTextLabel
Reply
#3

Quote:
Originally Posted by colonel-top
View Post
Maybe because of this ?
PHP Code:
Create3DTextLabel = (text[], colorFloat:XFloat:YFloat:ZFloat:DrawDistancevirtualworldtestLOS
testLOS = 0/1 Test the line-of-sight so this text can't be seen through objects
Cr. https://sampwiki.blast.hk/wiki/Create3DTextLabel
When players log in or /q, it disappears
Reply
#4

Try using Dynamic3DTextLabel. Don't know the cause tho
Reply
#5

Doesnt work.
Reply
#6

When you say it disappears sometimes, what do you mean? It goes away forever, for one player, for all players, temporarily?
Reply
#7

For all players permanently.
But if you try this command again, it still shows "carsign removed"
Therefore, the only thing missing is the 3DTextLabe I guess.,
Reply
#8

Also if you went on duty and carsign is on, the carsign will be shown your name with blue color (duty color)
If you went off duty, it shows your name but while color.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)