Lock more then 1 team
#1

Problem Fixed

Thanks to Marcel and hoodline



Edited: Not fixed
Reply
#2

Just add the cop skins to:

pawn Код:
if(SkinID == 160 || SkinID == 161 || SkinID == 125 || SkinID == 148 || SkinID == 106 || SkinID == 107)
https://sampwiki.blast.hk/wiki/Skins:Public
Reply
#3

i dont mean that i will add like the other one new team [RK] new team [LSPD] + the skins + message
Reply
#4

if(strfind(Nick, "[RK]", true) != -1 || strfind(Nick, "[RK]", true) != -1)

WTF?!
Reply
#5

pawn Код:
public OnPlayerRequestSpawn(playerid) {
  new SkinID;
  SkinID = GetPlayerSkin(playerid);
  new Nick[MAX_PLAYER_NAME];
  GetPlayerName(playerid, Nick, sizeof(Nick));
 
  if(SkinID == 160 || SkinID == 161 || SkinID == 125 || SkinID == 148 || SkinID == 106 || SkinID == 107) {
   
   if(strfind(Nick, "[RK]", true) != -1) {
     return 1;
   } else {
     GameTextForPlayer(playerid, "~r~Skin Locked ~n~ Only for [RK] gang members !", 750, 3);
   }
 }
 else if(Skinid == Cops Skins here)
 {
    if(strfind(Nick, "[Some Other Clan Tag]", true) != -1) {
      return 1;
    } else {
      GameTextForPlayer(playerid, "~r~Skin Locked ~n~ Only for [Some Other Clan Tag] gang members !", 750, 3);
    }
    return 1;
  }
}
?
Reply
#6

yea like this hoodline

but i get 1 warning

Код:
C:\Dokumente und Einstellungen\Admin\Desktop\mod (20895) : warning 209: function "OnPlayerRequestSpawn" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:     5988 bytes
Code size:     709568 bytes
Data size:     914232 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4142 cells (16568 bytes)
Total requirements: 1646172 bytes

1 Warning.
Reply
#7

pawn Код:
return 1;
before the last
pawn Код:
}
Reply
#8

Thanks no errors more

But now it dont lock the skins
Reply
#9

ok i fixed it

return 1 to return 0

now the players without gang tags cant use any skins
Reply
#10

It would be easier if you setup teams and lock to teams rather then skins
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)