Započeo Obrisan korisnik
•12. Feb. 2012.• Zaključano[Pomoć] Ime_Prezime ...
1,752
pregleda
8
postova
12. Feb. 2012.
Skripta koju koristim: Moj ...
Detaljan opis problema: Kako da napravim da mogu samo ja sa imenom Vegas. ulaziti ?
Dio skripte: Evo OnPlayerConnect
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Detaljan opis problema: Kako da napravim da mogu samo ja sa imenom Vegas. ulaziti ?
Dio skripte: Evo OnPlayerConnect
public OnPlayerConnect(playerid)
{
//------------------------------------------------------------------------------
new plname;
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return 1;
}
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Imigracioni Odsek: Vase ime nije prihvatljivo.");
SendClientMessage(playerid, COLOR_YELLOW2, "Podsetnik: Vase ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
296
Postovi:
74
Teme:
Pridružio se:Feb. 2011
12. Feb. 2012.
public OnPlayerConnect(playerid)
{
//------------------------------------------------------------------------------
new plname;
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return 1;
}ovako stavi,izbaciva ce ti erora ovde ih postaj
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
554
Postovi:
96
Teme:
Pridružio se:Feb. 2012
13. Feb. 2012.
Impulse! wrote on February 12, 2012, 10:23 pm:
public OnPlayerConnect(playerid)
{
//------------------------------------------------------------------------------
new plname;
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return 1;
}ovako stavi,izbaciva ce ti erora ovde ih postaj
sta mu dajes ako ce error izbacit ?
stavi ovo u OnPlayerConnect
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Centar za imigraciju !");
SendClientMessage(playerid, COLOR_YELLOW2, "Ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}13. Feb. 2012.
Quote from February 12, 2012, 10:23 pm:
public OnPlayerConnect(playerid)
{
//------------------------------------------------------------------------------
new plname;
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return 1;
}ovako stavi,izbaciva ce ti erora ovde ih postaj
sta mu dajes ako ce error izbacit ?
stavi ovo u OnPlayerConnect
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Centar za imigraciju !");
SendClientMessage(playerid, COLOR_YELLOW2, "Ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}A gdje da upišem da samo ja sa nickom "Vegas." mogu ulaziti na server ?
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
252
Postovi:
65
Teme:
Pridružio se:Jul 2010
13. Feb. 2012.
Paul McCartney wrote on February 13, 2012, 11:31 am:
new namestring = strfind(plname, "Vegas", true);?Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
184
Postovi:
21
Teme:
Pridružio se:Jul 2011
13. Feb. 2012.
Probaj ovako 😁
new plname;
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return 1;
}
if(strcmp(plname, "Vegas",false))
{
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Vase ime nije prihvatljivo.");
SendClientMessage(playerid, COLOR_YELLOW2, "Vase ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}
}13. Feb. 2012.
nemanjatesic96 wrote on February 13, 2012, 2:39 pm:
Probaj ovako 😁
new plname;
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return 1;
}
if(strcmp(plname, "Vegas",false))
{
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Vase ime nije prihvatljivo.");
SendClientMessage(playerid, COLOR_YELLOW2, "Vase ime mora biti u formatu Ime_Prezime.");
Kick(playerid);
return 1;
}
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava