SA-MP Forums Archive
[GameMode] [GM] Raven's Roleplay [2.5b] - 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] Raven's Roleplay [2.5b] (/showthread.php?tid=140427)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


Re: [GM] Raven's Roleplay [2.5b] - Miguel_Teixeira - 20.04.2011

edit: ok problem fixed.
One more Question, do you know how to spawm at hospital after death ?


Re: [GM] Raven's Roleplay [2.5b] - 1D10T - 20.04.2011

Oh sorry about that, as you might have noticed/figured out im relatively new on sa-mp forum. However I got some programming experience. Btw are you Knight(Eazy_K) from RD?


Re: [GM] Raven's Roleplay [2.5b] - Knight 47 - 20.04.2011

Quote:
Originally Posted by Miguel_Teixeira
Посмотреть сообщение
edit: ok problem fixed.
One more Question, do you know how to spawm at hospital after death ?
Normal the cmd /selectspawn works for this

Quote:
Originally Posted by 1D10T
Посмотреть сообщение
Oh sorry about that, as you might have noticed/figured out im relatively new on sa-mp forum. However I got some programming experience. Btw are you Knight(Eazy_K) from RD?
Yes i am Knight from RD


Re: [GM] Raven's Roleplay [2.5b] - Miguel_Teixeira - 20.04.2011

Someone help me please!

I got this error: gamemodes\larp.pwn(75126) : error 010: invalid function or declaration

Код:
	if(IsModelABike(GetPlayerVehicleID(playerid)))
		{
			SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Helmet or Else you can get Ticked! (/helmet)");
		}
		else
		{
			SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seat Belt or Else you can get Ticked! (/belt)");
		}
	}
	else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar))
	{
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attention! Type /engine or press SHIFT to start your engine!");
		TogglePlayerControllable(playerid, false);
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Drive Carefully!");
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seatbelt/Helmet or Else you can get Ticked! (/belt)");
	}
}
Thie line is only the "else if" line!

Help please.. Thanks!


Re: [GM] Raven's Roleplay [2.5b] - Knight 47 - 20.04.2011

Quote:
Originally Posted by Miguel_Teixeira
Посмотреть сообщение
Someone help me please!

I got this error: gamemodes\larp.pwn(75126) : error 010: invalid function or declaration

Код:
	if(IsModelABike(GetPlayerVehicleID(playerid)))
		{
			SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Helmet or Else you can get Ticked! (/helmet)");
		}
		else
		{
			SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seat Belt or Else you can get Ticked! (/belt)");
		}
	}
	else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar))
	{
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attention! Type /engine or press SHIFT to start your engine!");
		TogglePlayerControllable(playerid, false);
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Drive Carefully!");
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seatbelt/Helmet or Else you can get Ticked! (/belt)");
	}
}
Thie line is only the "else if" line!

Help please.. Thanks!
Use:

Код:
	if(IsModelABike(GetPlayerVehicleID(playerid)))
	{
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Helmet or Else you can get Ticked! (/helmet)");
	}
	else
	{
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seat Belt or Else you can get Ticked! (/belt)");
	}
	else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar))
	{
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attention! Type /engine or press SHIFT to start your engine!");
		TogglePlayerControllable(playerid, false);
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Drive Carefully!");
		SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Remember: Use your Seatbelt/Helmet or Else you can get Ticked! (/belt)");
	}
}



Re: [GM] Raven's Roleplay [2.5b] - Miguel_Teixeira - 20.04.2011

what have you changed ?

edit: well.. i got more errors now!

gamemodes\larp.pwn(75125) : error 029: invalid expression, assumed zero
gamemodes\larp.pwn(75125) : warning 215: expression has no effect
gamemodes\larp.pwn(75125) : error 001: expected token: ";", but found "if"


Re: [GM] Raven's Roleplay [2.5b] - Knight 47 - 20.04.2011

Quote:
Originally Posted by Miguel_Teixeira
Посмотреть сообщение
what have you changed ?

edit: well.. i got more errors now!

gamemodes\larp.pwn(75125) : error 029: invalid expression, assumed zero
gamemodes\larp.pwn(75125) : warning 215: expression has no effect
gamemodes\larp.pwn(75125) : error 001: expected token: ";", but found "if"
1) I have seen your caps and i have only set a cap other
2) Search for the ERRORLINES xD and not the cmd bv: now you have line 75125 and set after that line a ;
3) Read the errors: error 001: expected token: ";", but found "if" that means that after that line must be a ; and it found a if after that line. And i have ni if added


Re: [GM] Raven's Roleplay [2.5b] - kuberaland - 21.04.2011

Best script ever

1 problem. Cannot upload the 1 dll file to no1servers because it says error, so the whole gamemode doesn't work D:
Can some1 pliz help me with this, I tried everything D:


Re: [GM] Raven's Roleplay [2.5b] - Vygis - 21.04.2011

MAN! This is the best GameMode I Ever seen!


Re: [GM] Raven's Roleplay [2.5b] - pi22031990 - 21.04.2011

Fix /v park ( if you use my attach)
find :
public OnGameModeInit()
Код:
for(new h = 1; h < sizeof(CarInfo); h++)
{
format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h);
if(fexist(string2))
{
    if(CarInfo[h][cOwned] == 0)
		    {
		        ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],-1336.6174,-203.8509,5.7055+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
		    }
		    else //add this
		    {
				ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
			}
			if(CarInfo[h][cPaintjob] != 999)
			{
				ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
			}
			SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]);
			SetVehicleModifications(h);
		}
	}
find : scratchcarcp = CreateDynamicCP(2587.5195,-1543.7015,11.2107,7.0);

Код:
delete it
 	for(new h = 0; h < sizeof(ownedcar); h++)
	{
		if(IsAnOwnableCar(h) && CarInfo[h][cOwned] == 0)
		{
	 		DestroyVehicle(h);
		}
	}
find : if(strcmp(x_nr,"sell",true) == 0)
Код:
SafeRemovePlayerFromVehicle(playerid);
CarInfo[ownvehkey][cOwned] = 0;
CarInfo[ownvehkey][cLock] = 1; // add this
DestroyVehicle(ownvehkey);
"asellcar" and diaglogid == 1000 make same .
Or download it.( Listen don't use it if you don't want fix all bug again).
If you don't use /v park , you may not need fix it, because player can use /v park to fix vehicles , mechanic lost job.


Re: [GM] Raven's Roleplay [2.5b] - BingBang - 06.06.2011

Quote:
Originally Posted by pliptm
Посмотреть сообщение
Nope, your method doens't work too.
Still this same problem that car is invisible.
But if i go to car and set my int again to 0 then i can see this car.
Can anybody help me?
try to restart the server


Re: [GM] Raven's Roleplay [2.5b] - pliptm - 06.06.2011

Quote:
Originally Posted by BingBang
Посмотреть сообщение
try to restart the server
i already tried, this woun't help.


Re: [GM] Raven's Roleplay [2.5b] - BingBang - 06.06.2011

Quote:
Originally Posted by pliptm
Посмотреть сообщение
i already tried, this woun't help.
ok, try to use the hacking program again, and found the list of visible car or what ever try 1 by 1, or you can delete the car "(AddStaticVehicleEx......)


Re: [GM] Raven's Roleplay [2.5b] - orlev147258369 - 06.06.2011

Thanks alot man great script.


Re : [GM] Raven's Roleplay [2.5b] - kadestyle - 06.06.2011

THX BingBang

1 - why when people lock and unlock his car all alone? and everyone can take it ...

2 - why when a player dies or when there is a reboot it loses its skin?


Re: [GM] Raven's Roleplay [2.5b] - GTA-Roleplay - 06.06.2011

I've heard / gmx and / upload fucker up the script is this true?


Re: Re : [GM] Raven's Roleplay [2.5b] - BingBang - 06.06.2011

Quote:
Originally Posted by kadestyle
Посмотреть сообщение
THX BingBang

1 - why when people lock and unlock his car all alone? and everyone can take it ...

2 - why when a player dies or when there is a reboot it loses its skin?
1.
Quote:
http://pastebin.com/5a4HsAMA
2. Are you change this "public OnPlayerDeath(playerid, killerid, reason)" ?
try to replace it again with the original GM.


Re: [GM] Raven's Roleplay [2.5b] - Keff_Hawkins - 06.06.2011

Ehm.. How do I buy a house in the server?


AW: [GM] Raven's Roleplay [2.5b] - _Tweak_ - 06.06.2011

/buyhouse


Re : [GM] Raven's Roleplay [2.5b] - kadestyle - 07.06.2011

thank you bingbang

and no I is not changing "public OnPlayerDeath(playerid, killerid, reason)"