SA-MP Forums Archive
cop team - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: cop team (/showthread.php?tid=88104)



cop team - dafel2 - 24.07.2009

SOLVED!


Re: cop team - dafel2 - 24.07.2009

bump


Re: cop team - dafel2 - 25.07.2009

bump.
there is no fix?


Re: cop team - Nee - 25.07.2009

We need to change the faction... You`r cop faction is number 1
if (PlayerInfo[playerid][pMember] == 1!
Or try this:
PlayerInfo[playerid][team] = 1;


Re: cop team - dafel2 - 25.07.2009

Quote:
Originally Posted by Nee
We need to change the faction... You`r cop faction is number 1
if (PlayerInfo[playerid][pMember] == 1!
Or try this:
PlayerInfo[playerid][team] = 1;
Its not an godfather gamemode.
Код:
	 case TEAM_COP: 
{
        if(PlayerInfo[playerid][logged] == 1) 
 {
        if(strfind(Nick, "revenngeR", true) != -1 || strfind(Nick, "null", true) != -1) 
   {
       TextDrawShowForPlayer(playerid,myclock);
       SetPlayerColor(playerid,COLOR_BLUE);
       SetPlayerPos(playerid,2295.8589,2459.7637,10.8203);
       PlayerInfo[playerid][team] = TEAM_COP;
       SendClientMessage(playerid,COLOR_RED,"Welcome! Type /cophelp to see cop commands!");
 }
   }
       PlayerInfo[playerid][team] = TEAM_CIV;
       SendClientMessage(playerid,COLOR_RED,"You are not a cop! you can apply to cop on forums.");
       SetPlayerPos(playerid,2171.1748,1396.9678,11.0625);
       SetPlayerSkin(playerid,134);
       return 1;
}
i edited the code something like this
but it doesnt work anyway


Re: cop team - Nee - 25.07.2009

Hmm is TDM mod?!


Re: cop team - dafel2 - 25.07.2009

its a racing gamemode.
omg i fixed finnaly.
Код:
	case TEAM_COP: {
			if(PlayerInfo[playerid][logged] == 1) {
				if(strfind(Nick, "revenngeR", true) != -1 || strfind(Nick, "null", true) != -1) {
					TextDrawShowForPlayer(playerid,myclock);
					SetPlayerColor(playerid,COLOR_BLUE);
					SetPlayerPos(playerid,2295.8589,2459.7637,10.8203);
					PlayerInfo[playerid][team] = TEAM_COP;
					SendClientMessage(playerid,COLOR_RED,"Welcome! Type /cophelp to see cop commands!");
					return 1;
				}
				PlayerInfo[playerid][team] = TEAM_CIV;
				SendClientMessage(playerid,COLOR_RED,"You are not logged in!");
				SetPlayerPos(playerid,2171.1748,1396.9678,11.0625);
				SetPlayerSkin(playerid,134);
			}
			PlayerInfo[playerid][team] = TEAM_CIV;
			SendClientMessage(playerid,COLOR_RED,"You are not a cop! you can apply to cop on forums.");
			SetPlayerPos(playerid,2171.1748,1396.9678,11.0625);
			SetPlayerSkin(playerid,134);
		}