SA-MP Forums Archive
Callsign problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Callsign problem (/showthread.php?tid=605619)



Callsign problem - Tudounaozi - 22.04.2016

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;
}


Re: Callsign problem - colonel-top - 22.04.2016

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


Re: Callsign problem - Tudounaozi - 10.06.2016

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


Re: Callsign problem - Sime30 - 10.06.2016

Try using Dynamic3DTextLabel. Don't know the cause tho


Re: Callsign problem - Tudounaozi - 10.06.2016

Doesnt work.


Re: Callsign problem - Chilli9434 - 10.06.2016

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


Re: Callsign problem - Tudounaozi - 11.06.2016

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.,


Re: Callsign problem - Tudounaozi - 11.06.2016

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.