20.11.2009, 14:37
Okay i tried to make each cop gets blue colored names when they go on /duty,but after testing it,i found out that he can be seen on the map.How to make it invisible or cant be seen ?
The lines :
The lines :
Код:
if(strcmp(cmd, "/duty", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255) { if(OnDuty[playerid]==0) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { format(string, sizeof(string), "* Officer %s took a Badge and a Gun from his locker.", sendername); } else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { format(string, sizeof(string), "* Agent %s took a Badge and a Gun from his locker.", sendername); } ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SafeGivePlayerWeapon(playerid, 3, 1); SafeGivePlayerWeapon(playerid, 41, 500); SetPlayerArmour(playerid, 100); SetPlayerColor(playerid,COP_DUTY_COLOR); OnDuty[playerid] = 1; }