[GameMode] [GM] The Godfather
#41

Hello, Can some1 send me the Commands? because the link on page 1 dont works...
Reply
#42

Thanks Karlip but now I get 1 error:

Code:
C:\Users\Dol\Desktop\Fantastic\gamemodes\frp.pwn(1119) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#43

Quote:
Originally Posted by jasonnw666
hi ,

how avoid to be id 0 when i connect to server?
add a NPC
Reply
#44

there is no others solutions to avoid to be id 0 when a player connect on the server?
Reply
#45

Quote:
Originally Posted by PatrickChucky
no problm now i habe the inc ppp

i have a problm, idk why wene i open the server teh register is not avaible, the siad, restarting...

.................................................. ../register [password]

i use the comand and cant regist

any help me plz
Make sure there is a user database in the script files.
Reply
#46

hi, how can i do this?

1. change medic bill
2. when players enter in pd, taxi or some another organizations car that he dont be eject automaticly
3. set rescpect poents need for next level

tnx
Reply
#47

hi
i have a problem , npc disconect automaticaly after a time
who can i keep the npc connected?
Reply
#48

please how can I avoid that a player connect to id 0!??
Reply
#49

Quote:
Originally Posted by jasonnw666
please how can I avoid that a player connect to id 0!??
Add one NPC to a script.
Reply
#50

i added one but after a time the npc disconnect
there is no one other solution to avoid to be id 0?

any one have a soultion please
Reply
#51

Quote:
Originally Posted by buonggiorno
hi, how can i do this?

1. change medic bill
2. when players enter in pd, taxi or some another organizations car that he dont be eject automaticly
3. set rescpect poents need for next level

tnx
for 1..look for this..new deathcost = 500; and change it to the number as you want..
for 2. just delete the RemovePlayerFromVehicle(playerid);
for 3..look for this.... new levelexp = 4; and change the number like you want.

GL.
Reply
#52

any one have one other solution to avoid that a player be id0 please
Reply
#53

Quote:
Originally Posted by Adil
Quote:
Originally Posted by Fredy_Cole
i have a problem
when i login to my mode
i am not spawning

i have GF login system
and i only add dialog to the system

someone can help me plase?

thanks!

sorry , my english not so good
Show your Login Dialog, and give us some more info on whats the situation, the details.
OnPlayerConnect:

Quote:

if(fexist(string))
{
gPlayerAccount[playerid] = 1;
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
SendClientMessage(playerid,COLOR_LIGHTRED,"This Mod Made By Fredy_Cole !, Type /Credits For More Credits .");
//SendClientMessage(playerid,COLOR_LIGHTRED,"The Ow.");
SendClientMessage(playerid,COLOR_WHITE,"Our Vent: Version: 2.1 IP: 80.179.144.106 Port: 6365");
SendClientMessage(playerid,COLOR_WHITE,"Our Forum: iAtraf.Co.il");
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to Los Santos RolePlay -");
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: That nick is registered, please login");
// SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now login by typing /login <password>");
format(loginstring,sizeof(loginstring),"Welcome to iAtraf-RP. \n \nThat name is registered.\nPlease enter your password below:");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Lo gin",loginstring,"Login","Exit");
return 1;
}

OtherTimer:

Quote:

if(gPlayerAccount[i] == 1 && gPlayerLogged[i] == 0)
{
new loginname[64];
new loginstring[128];
GetPlayerName(i,loginname,64);
format(loginstring,sizeof(loginstring),"Welcome to iAtraf-RP. \n \nThat name is registered. please enter your password below:");
ShowPlayerDialog(i,1,DIALOG_STYLE_INPUT,"Login",lo ginstring,"Login","Exit");
}
}

OnPlayerRegister:

Quote:

fclose(hFile);
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"Welcome to iAtraF-RP. \n \nThat name is registered.\nPlease enter your password below:",loginname);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Lo gin",loginstring,"Login","Exit");

OnPlayerLogin:

Quote:

new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"ERROR: Incorrect passowrd!\n \nPlease enter the correct password:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT ,"Login",loginstring,"Login","Exit");
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { Kick(playerid); }
return 1;

OnDialogResponse:

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if(response)
{
if(dialogid == 1 || dialogid == 12347)
{
if(strlen(inputtext))
{
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
// Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
else
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"ERROR: Incorrect password!\n \nPlease enter the correct password:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT ,"Login",loginstring,"Login","Exit");
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
}
}
if(dialogid == 2)
{
if(strlen(inputtext))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "users/%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "That Username is already taken, please choose a different one.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Welcome, %s\nYou dont have an account.\nPlease register:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT ,"Register",regstring,"Register","Exit");
}
}
}
return 1;
}

Reply
#54

When i try run the server i get an error saying:
SA-MP Dedicated Server
----------------------
v0.3a R7, ©2005-2010 SA-MP Team

[23:51:15] filterscripts = "" (string)
[23:51:15]
[23:51:15] Server Plugins
[23:51:15] --------------
[23:51:15] Loading plugin: streamer
[23:51:15]

*** Streamer Plugin v2.3.3 by Incognito loaded ***


[23:51:15] Loaded.
[23:51:15] Loaded 1 plugins.

[23:51:15] I couldn't load any gamemode scripts. Please verify your server.cfg
[23:51:15] It needs a gamemode0 line at the very least.




HELP PLEASE!!!!
Reply
#55

Quote:
Originally Posted by purplepker
When i try run the server i get an error saying:
SA-MP Dedicated Server
----------------------
v0.3a R7, ©2005-2010 SA-MP Team

[23:51:15] filterscripts = "" (string)
[23:51:15]
[23:51:15] Server Plugins
[23:51:15] --------------
[23:51:15] Loading plugin: streamer
[23:51:15]

*** Streamer Plugin v2.3.3 by Incognito loaded ***


[23:51:15] Loaded.
[23:51:15] Loaded 1 plugins.

[23:51:15] I couldn't load any gamemode scripts. Please verify your server.cfg
[23:51:15] It needs a gamemode0 line at the very least.




HELP PLEASE!!!!
You haven't bothered fixing your server CFG... In your server.cfg you must add "gamemode0 gf" (or whatever the name is of your AMX)
Reply
#56

Quote:
Originally Posted by Adil
Quote:
Originally Posted by Fredy_Cole
i have a problem
when i login to my mode
i am not spawning

i have GF login system
and i only add dialog to the system

someone can help me plase?

thanks!

sorry , my english not so good
Show your Login Dialog, and give us some more info on whats the situation, the details.
OnPlayerConnect:

Quote:

if(fexist(string))
{
gPlayerAccount[playerid] = 1;
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
SendClientMessage(playerid,COLOR_LIGHTRED,"This Mod Made By Fredy_Cole !, Type /Credits For More Credits .");
//SendClientMessage(playerid,COLOR_LIGHTRED,"The Ow.");
SendClientMessage(playerid,COLOR_WHITE,"Our Vent: Version: 2.1 IP: 80.179.144.106 Port: 6365");
SendClientMessage(playerid,COLOR_WHITE,"Our Forum: iAtraf.Co.il");
SendClientMessage(playerid,COLOR_YELLOW,"Welcome to Los Santos RolePlay -");
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: That nick is registered, please login");
// SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now login by typing /login <password>");
format(loginstring,sizeof(loginstring),"Welcome to iAtraf-RP. \n \nThat name is registered.\nPlease enter your password below:");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Lo gin",loginstring,"Login","Exit");
return 1;
}

OtherTimer:

Quote:

if(gPlayerAccount[i] == 1 && gPlayerLogged[i] == 0)
{
new loginname[64];
new loginstring[128];
GetPlayerName(i,loginname,64);
format(loginstring,sizeof(loginstring),"Welcome to iAtraf-RP. \n \nThat name is registered. please enter your password below:");
ShowPlayerDialog(i,1,DIALOG_STYLE_INPUT,"Login",lo ginstring,"Login","Exit");
}
}

OnPlayerRegister:

Quote:

fclose(hFile);
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"Welcome to iAtraF-RP. \n \nThat name is registered.\nPlease enter your password below:",loginname);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Lo gin",loginstring,"Login","Exit");

OnPlayerLogin:

Quote:

new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"ERROR: Incorrect passowrd!\n \nPlease enter the correct password:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT ,"Login",loginstring,"Login","Exit");
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { Kick(playerid); }
return 1;

OnDialogResponse:

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if(response)
{
if(dialogid == 1 || dialogid == 12347)
{
if(strlen(inputtext))
{
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
// Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
else
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"ERROR: Incorrect password!\n \nPlease enter the correct password:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT ,"Login",loginstring,"Login","Exit");
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
}
}
if(dialogid == 2)
{
if(strlen(inputtext))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "users/%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "That Username is already taken, please choose a different one.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Welcome, %s\nYou dont have an account.\nPlease register:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT ,"Register",regstring,"Register","Exit");
}
}
}
return 1;
}

someone can answer me plase?
Reply
#57

GM Cool but will have one bug with cars
Reply
#58

Quote:
Originally Posted by leo3412
GM Cool but will have one bug with cars
There's more than 1 bug with this GM.
Reply
#59

I want to move the houses from LS/SF To LV, And I am really dont know how to this,
if some one can help me, I really need this.

Thanks, IdaNN.
Reply
#60

Someone can answer me plase
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)