16.05.2020, 03:25
Why not same color player and senddeathmessage ?
16.05.2020, 06:20
Check weather you have made it like this https://sampwiki.blast.hk/wiki/Function:SendDeathMessage
And this may happen if you are setting player's color to 0xFFFFFFFF in OnPlayerDeath
And this may happen if you are setting player's color to 0xFFFFFFFF in OnPlayerDeath
16.05.2020, 07:21
yes i have made it like on wiki and i dont add a color when player death i dont have any idea why color is white on senddeathmessage

16.05.2020, 08:18
Are you using SetPlayerColor or SetPlayerMarkerForPlayer?
16.05.2020, 08:51
Yes im using this for a command this command make player invisible on map but when player is invisible on map there is no problem with senddeathmessage there is a color of player on it
16.05.2020, 08:53
16.05.2020, 08:56
this is apart of cmd to make player invisible
i need to add else ? and how to reset player color
Quote:
for (new i; i < MAX_PLAYERS; i++) { SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00)); } |
16.05.2020, 09:14
That's not what I said. You're telling me that you're only setting the colour when the player goes invisible. You need to set it elsewhere. I have no idea how your script works, but you can set colours for different teams/classes if that's what works best for your gamemode. Otherwise, you can set a random colour when the player joins, etc.
16.05.2020, 09:31
Yes sorry for my English
i fix it
i changed
To
this is on onplayerspawn
but when player use cmd to be invisible that work now ?
i have this code on cmd
i fix it
i changed
Quote:
SetPlayerMarkerForPlayer(i, playerid, (g_Team[g_Player[playerid][playerClass]][teamColor] | 0xFFFFFFFF)); |
Quote:
SetPlayerMarkerForPlayer(i, playerid, (g_Team[g_Player[playerid][playerClass]][teamColor] )); |
but when player use cmd to be invisible that work now ?
i have this code on cmd
Quote:
for (new i; i < MAX_PLAYERS; i++) { SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00)); } |
« Next Oldest | Next Newest »
Users browsing this thread: 3 Guest(s)