[GameMode] [GM] Raven's Roleplay [2.5b]

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

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?
Reply

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
Reply

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

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)");
	}
}
Reply

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"
Reply

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
Reply

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:
Reply

MAN! This is the best GameMode I Ever seen!
Reply

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.
Reply

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
Reply

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

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......)
Reply

Thanks alot man great script.
Reply

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?
Reply

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

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. 2. Are you change this "public OnPlayerDeath(playerid, killerid, reason)" ?
try to replace it again with the original GM.
Reply

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

/buyhouse
Reply

thank you bingbang

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


Forum Jump:


Users browsing this thread: 5 Guest(s)