22.05.2014, 21:23
(
Последний раз редактировалось KingPersona; 22.05.2014 в 22:21.
)
Hello
i want help , +rep for help, i want make is can all name connect in Server , example :alex1 [Mp]alion , all name accept
when i delete this all code for name is crash pawno
this my code in my GM , and i want do can all name accept connect , what i do ?
i want help , +rep for help, i want make is can all name connect in Server , example :alex1 [Mp]alion , all name accept
when i delete this all code for name is crash pawno
this my code in my GM , and i want do can all name accept connect , what i do ?
pawn Код:
public OnPlayerConnect(playerid)
{
// ONPLAYERCONNECT
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if(strfind(playername, "_", true) != -1)
{
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{DC0C0C}NMRP: {FFFFFF}Your name needs to be Role-Play! (For example: John_Smith) With NO numbers!");
return Kick(playerid);
}
if(strfind(playername, "0", true) != -1 || strfind(playername, "1", true) != -1 || strfind(playername, "2", true) != -1 || strfind(playername, "3", true) != -1 || strfind(playername, "4", true) != -1 || strfind(playername, "5", true) != -1
|| strfind(playername, "6", true) != -1 || strfind(playername, "7", true) != -1 || strfind(playername, "8", true) != -1 || strfind(playername, "9", true) != -1)
{
SendClientMessage(playerid, COLOR_WHITE, "{DC0C0C}NMRP: {FFFFFF}Your name needs to be Role-Play! (For example: John_Smith) With NO numbers!");
return Kick(playerid);
}
PlayerSFC_Loaded[playerid] = 0;
PlayerSFC[playerid] = 0;
PlayerDead[playerid] = 0;
PlayerDeadInt[playerid] = 0;
PlayerDeadWorld[playerid] = 0;
LoadedPatient[playerid] = INVALID_PLAYER_ID;
Dim2D_Remove(PlayerReport, playerid);
CheatTimer[playerid] = 5;
for (new i = 0; i < 13; i ++)
{
PlayerWeapons[playerid][i] = 0;
PlayerAmmo[playerid][i] = 0;
}
WarStats1[playerid] = 0;
WarStats2[playerid] = 0;
TogLC[playerid] = 1;
TogAC[playerid] = 1;
EnteredHouse[playerid] = 0;
Hacked[playerid] = 0;
PlayerInfo[playerid][pGPS] = 0;
strmid(PlayerInfo[playerid][pSText], "NoText", 0, 255, 255);
RentHouse[playerid] = 0;
JobStep[playerid] = 0;
PlayerInfo[playerid][pSQLID] = 0;
AdTimer[playerid] = 0;