Help in clan system - 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 in clan system (
/showthread.php?tid=655866)
Help in clan system -
Aliteos - 01.07.2018
I have a Clan system
When I put the Clan tag on my name I can re-connect the server with the same name
What's your solution?!
Re: Help in clan system -
kovac - 01.07.2018
Update the name in database, not just server.
Re: Help in clan system -
Aliteos - 02.07.2018
In the Clan system's , the tag can be moved and deleted
This is not possible if the name of the database is upgraded
Re: Help in clan system -
Aliteos - 02.07.2018
Код HTML:
foreach(Player, i)
{
if(IsPlayerConnected(i) && i != playerid)
{
if(strcmp(PlayerInfo[playerid][pNormalName], PlayerInfo[i][pNormalName], true) == 0) KickEx(playerid);
}
}
I added this code but it does not work
Re: Help in clan system -
jasperschellekens - 02.07.2018
Quote:
Originally Posted by Aliteos
Код HTML:
foreach(Player, i)
{
if(IsPlayerConnected(i) && i != playerid)
{
if(strcmp(PlayerInfo[playerid][pNormalName], PlayerInfo[i][pNormalName], true) == 0) KickEx(playerid);
}
}
I added this code but it does not work
|
I assume you want to kick someone having the same name?
PHP код:
if(!strcmp(PlayerInfo[playerid][pNormalName],PlayerInfo[i][pNormalName],true))
Re: Help in clan system -
Aliteos - 02.07.2018
Yes, I do not want to add a name twice
Re: Help in clan system -
Verc - 02.07.2018
strcmp won't help you,use strfind.
https://sampwiki.blast.hk/wiki/Strfind
Re: Help in clan system -
Aliteos - 02.07.2018
I used strfind, but did not work
Re: Help in clan system -
CaptainBoi - 02.07.2018
then search for tutorial on samp