SA-MP Forums Archive
Cop Bug!! - 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: Cop Bug!! (/showthread.php?tid=503187)



Cop Bug!! - Crazydriver - 28.03.2014

Hello guys i want some help there is a bug in my cop system when someone choose cop skin/skill it works fine as matter afact it works fine till you die,after you die your skin will be the same along with your skill,but on chat log where your messages are shown you will be shown as WHITE = civilian any help which can solve this



Re: Cop Bug!! - vassilis - 28.03.2014

show us code
?


Re: Cop Bug!! - Crazydriver - 28.03.2014

Which code??


Re: Cop Bug!! - ParadiseRP - 28.03.2014

The code of the command to choose a cop skin mate.


Re: Cop Bug!! - Crazydriver - 28.03.2014

Quote:

The code of the command to choose a cop skin mate.

It's not a command it's just OnPlayerRequestClass, but that problem is not here

the problem is after cop dies



Re: Cop Bug!! - Kyle - 28.03.2014

Maybe you should listen to my solicitor before you continue.


Re: Cop Bug!! - Crazydriver - 29.03.2014

Any help?


Re: Cop Bug!! - Stanford - 29.03.2014

SetPlayerToTeamColor(playerid)

Your gamemode should've something like this, put it OnPlayerSpawn or if it's not coded (setting the color) - code it and call the function.


Re: Cop Bug!! - Crazydriver - 29.03.2014

Quote:

SetPlayerToTeamColor(playerid)

Your gamemode should've something like this, put it OnPlayerSpawn or if it's not coded (setting the color) - code it and call the function.

I don't have SetPlayerToTeamColor(playerid) but i think the problem isn't because of this because earlier in scripting it was working fine


Re: Cop Bug!! - Crazydriver - 03.04.2014

Bump i really need help with this issue please i have Public OnPlayerDeath