Help! - 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)
+--- Thread: Help! (
/showthread.php?tid=483004)
Help! -
DeathFire - 23.12.2013
Hey guys!
I need help with something c:
I want to make the [sK] tag strict, like I don't want everyone to use it! I only want my members to be able to wear it!
Can you help me?
Thanks c:
Re: Help! -
SilentSoul - 23.12.2013
pawn Код:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, 24);
if(strfind(name, "[sK]", true) != -1)
{
//if(PlayerInfo[playerid][ClanAccepted] == 1) Try to make a system to save your clan members instead of kicking them every time
{
SendClientMessage(playerid, -1, "You are part of [sK] Community.");
}
else
{
SendClientMessage(playerid, -1, "[Error] - You are not allowed to use clan name [sK]");
//Kick(playerid); or freeze him do what ever you want.
}
}
return 1;
}
Suggestion : I would like to suggest you with using a password using dialogs for your clan members only can login through , instead of losing players for your server.