SA-MP Forums Archive
Can somebody help adding Player colors? - 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: Can somebody help adding Player colors? (/showthread.php?tid=297141)



Can somebody help adding Player colors? - Stefand - 14.11.2011

Hi users,

I have Vortex Roleplay.

but i want if a Cop goes on duty they will get a Blue name and they will be Blue on the MAP can someone help me with that?

script: www.mixmusicfm.nl/gta/VortexRoleplay.pwn

Greetz


Re: Can somebody help adding Player colors? - Kostas' - 14.11.2011

Here
pawn Код:
if(Player[playerid][AdminDuty] == 1)
{
    if(strlen(Player[playerid][AdminName]) >= 1 || strcmp(Player[playerid][AdminName], "Nothing", true) == 0) {
        SendClientMessage(playerid, WHITE, "You are now on admin duty. You will appear on the /admins list and you'll be able to view reports.");
        Player[playerid][AdminDuty] = 1;

        if(Player[playerid][AdminLevel] >= 3) {
            SetPlayerHealth(playerid, 500000);
            SetPlayerColor(playerid,0x0259EAFF);

        }

        format(Player[playerid][NormalName], 255, "%s", GetName(playerid));

        SetPlayerName(playerid, Player[playerid][AdminName]);
        SetPlayerSkin(playerid, Player[playerid][AdminSkin]);

        if(Player[playerid][HospitalTime] >= 1) {
            Player[playerid][HospitalTime] = 0;
            SetCameraBehindPlayer(playerid);
            SetPlayerPos(playerid, SpawnX, SpawnY, SpawnZ);
            SetPlayerDrunkLevel(playerid, 0);
            SendClientMessage(playerid, WHITE, "You have been de-hospitalized.");
        }

        format(string, sizeof(string), "%s (%s) is now on Admin Duty (just authenticated, but logged on duty).", Player[playerid][AdminName], Player[playerid][NormalName]);
        SendToAdmins(ADMINORANGE, string, 0);
    }
    else {
        SendClientMessage(playerid, WHITE, "You haven't set an administrators' name yet.");
    }
There are a lot of code and I didn't had time a lot. But I changed this part


Re: Can somebody help adding Player colors? - Stefand - 15.11.2011

This is Admin thing?

Not cop?


Re: Can somebody help adding Player colors? - Kostas' - 15.11.2011

Cop? Oh, My bad. My mind was away
I searched on admin