24.07.2009, 09:28
SOLVED!
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; |
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; }
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); }