looking for a "special" login script^^ (look thread)
#1

hi!
1. im german, cant speak english very well

ok, i want a class which is "protect" with a password^^
its for my clan. so only clanmember should be able to use this char(with password or something else^^)

class1 everyone
class2 need password
class3 need password
class4 everyone

hope someone can help me^^

BMGP
Reply
#2

Код:
public OnPlayerRequestClass(playerid, classid)
  {
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, sizeof(name));
  if(strfind(name,"WRITE_YOUR_CLAN_TAG_HERE",true)==-1&&classid==1||strfind(name,"WRITE_YOUR_CLAN_TAG_HERE",true)==-1&&classid==2)
    {
    SendClientMessage(playerid, yourcolorhere, "you can't use this skin blaa blaa only for my clan etc.");
    return 0;
    }
  return 1;
  }
Reply
#3

thanks!

i will try it!

there is a litttttle problem (not very important but i ask^^)

When someone fake the Clantag?!^^ any solution to solve that..
(not a big problem but it would be easier )
Reply
#4

Those who fake the clantag must be banned xD...

If you want to avoid that you need to make command which will let you to choose the skin or something like that.
Reply
#5

xDDD

ok, it was only a question^^

yeah i will ban them!! muahahahah
Reply
#6

f*ck!
If i am with Clan tag in server [CLANTAG]Name it works!
but when i choose something other there is standing something like this(i type it before): You are not allowed to NWC char...
and then i cant choose another char^^
HEEEEEEEEEELP
Reply
#7

ForceClassSelection...or something like this. Look at wiki if I am wrong...(playerid);
SetPlayerHealth(playerid, 0.0);
this should help.
Reply
#8

i think you dont understand^^
im IN THE CLASS SELECTION... -> i cant choose other chars and i cant spawn if im not [CLANTAG]Name!!!!
Reply
#9

Add more classes, with which you can login without clantag
Reply
#10

yeah but when im a the clantag classes its freezen again^^

IS THAT POSSIBLE: ??

Only if i press SHIFT(at aClan Character) i spawn or there is standing something like "you are not allowed to..."
That would be great!
AND i saw it in a server
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)