public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
// Has numbers
if(strfind(name, "_Smith", true) != -1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}You cannot use _Smith here.");
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has been kicked from the server for having a Non-RP name.", name);
Kick(playerid);
}
}
|
Код:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
// Has numbers
if(strfind(name, "_Smith", true) != -1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}You cannot use _Smith here.");
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has been kicked from the server for having a Non-RP name.", name);
Kick(playerid);
}
}
|
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
|
Код:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
// Has numbers
if(strfind(name, "_Smith", true) != -1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}You cannot use _Smith here.");
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has been kicked from the server for having a Non-RP name.", name);
Kick(playerid);
}
}
|
|
Why would you need a FS? Just take the code and place it in your GM
|
|
I want to make a cmd system too. like If i add /surename (Id) (Name) . So I can easily can manage them. not with a huge time taking compile. Becuase my script is 15.6MB( AMX ) 132750lines. thats why. If it a FS, I can easily compile or manage it
|
|
So wait, If I get this correctly, you cant script this simple thing yet you managed to copy and paste 130k lines together? bro, you need to learn scripting and optimize that. 15.6mb isnt normal for a script. I can probably make that script into 15k lines max.
|
thats the last time i remember , I have created one FS about that, but unfortunatly I have lost that. Now i am creating one myself . I thought someone can help me. But no!