SA-MP Forums Archive
looking for a "special" login script^^ (look thread) - 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: looking for a "special" login script^^ (look thread) (/showthread.php?tid=93132)



looking for a "special" login script^^ (look thread) - BMGP - 23.08.2009

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


Re: looking for a "special" login script^^ (look thread) - ronyx69 - 23.08.2009

Код:
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;
  }



Re: looking for a "special" login script^^ (look thread) - BMGP - 23.08.2009

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 )


Re: looking for a "special" login script^^ (look thread) - ronyx69 - 23.08.2009

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.


Re: looking for a "special" login script^^ (look thread) - BMGP - 23.08.2009

xDDD

ok, it was only a question^^

yeah i will ban them!! muahahahah


Re: looking for a "special" login script^^ (look thread) - BMGP - 23.08.2009

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


Re: looking for a "special" login script^^ (look thread) - AiVAMAN - 23.08.2009

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


Re: looking for a "special" login script^^ (look thread) - BMGP - 23.08.2009

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


Re: looking for a "special" login script^^ (look thread) - AiVAMAN - 24.08.2009

Add more classes, with which you can login without clantag


Re: looking for a "special" login script^^ (look thread) - BMGP - 24.08.2009

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