SA-MP Forums Archive
[GameMode] [GM] The Godfather - 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: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] [GM] The Godfather (/showthread.php?tid=7797)

Pages: 1 2 3 4 5 6 7 8 9 10


Re: [GM] The Godfather - hide123 - 07.03.2009

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


Re: [GM] The Godfather - Dol - 07.03.2009

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.



Re: [GM] The Godfather - shady91 - 02.12.2009

Quote:
Originally Posted by jasonnw666
hi ,

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


Re: [GM] The Godfather - jasonnw666 - 03.12.2009

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


Re: [GM] The Godfather - CameronF91 - 03.12.2009

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.


Re: [GM] The Godfather - buonggiorno - 04.12.2009

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


Re: [GM] The Godfather - jasonnw666 - 04.12.2009

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


Re: [GM] The Godfather - jasonnw666 - 04.12.2009

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



Re: [GM] The Godfather - Correlli - 04.12.2009

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


Re: [GM] The Godfather - jasonnw666 - 04.12.2009

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


Re: [GM] The Godfather - MultiMaiGic - 05.12.2009

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.


Re: [GM] The Godfather - jasonnw666 - 05.12.2009

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


Re: [GM] The Godfather - Fredy_Cole - 23.04.2010

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;
}




Re: [GM] The Godfather - purplepker - 23.04.2010

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!!!!


Re: [GM] The Godfather - Calgon - 23.04.2010

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)


Re: [GM] The Godfather - Fredy_Cole - 23.04.2010

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?


Re: [GM] The Godfather - Varkoll_ - 24.04.2010

GM Cool but will have one bug with cars


Re: [GM] The Godfather - Calgon - 24.04.2010

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


Re: [GM] The Godfather - IdanN - 24.04.2010

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.


Re: [GM] The Godfather - Fredy_Cole - 24.04.2010

Someone can answer me plase