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

Quote:
Originally Posted by Vlad_Dubonos
View Post
Anyone can help me with /duty(cop) bugged when i use /duty its change my skin everytime Randomaly
please really need that Thanks for helper's-
Sorry see next Text
Reply

Quote:
Originally Posted by Vlad_Dubonos
View Post
Anyone can help me with /duty(cop) bugged when i use /duty its change my skin everytime Randomaly
please really need that Thanks for helper's-
I have search in this Thread and find this. It's work fine and have no Bug.
Code:
	if(strcmp(cmd, "/duty", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(PlayerInfo[playerid][pWanted] == 1) return SendClientMessage(playerid, COLOR_GREY, "* Criminals can not go on duty!");
			if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3 || IsAFreecop(playerid))
			{
				if(PlayerInfo[playerid][pDBanned] == 1)
				{
					SendClientMessage(playerid, COLOR_GREY, "* You are Banned from Cop Duty!");
					return 1;
				}
				if (IsPlayerInRangeOfPoint(playerid, 6,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid, 6,223.6328,186.8251,1003.0313) || IsPlayerInRangeOfPoint(playerid, 6, 233.4989,123.6518,1003.2188) || PlayerInfo[playerid][pLocal] != 255)
				{
					if(PlayerInfo[playerid][pDuty] == 0)
			        {
			            if(IsAFreecop(playerid))
			            {
			                format(string, sizeof(string), "* Voluntary Officer %s took a Badge and a Gun from his locker.", sendername);
                            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
							SafeResetPlayerWeapons(playerid);
							SafeGivePlayerWeapon(playerid, 41, 150);
							SafeGivePlayerWeapon(playerid, 24, 70);
							SafeGivePlayerWeapon(playerid, 3, 0);
							SetPlayerColor(playerid,0xa9c4e400);
							PlayerInfo[playerid][pDuty] = 1;
							PlayerInfo[playerid][pChar] = 71;
							new factionskin = PlayerInfo[playerid][pChar];
    						SetPlayerSkin(playerid, factionskin);
    						SaveGuns(playerid);
							return 1;
						}
			            if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
			            {
				    		format(string, sizeof(string), "* Officer %s took a Badge and a Gun from his locker.", sendername);
				    		SendClientMessage(playerid, COLOR_WHITE, "Type /equip for equipments // Type /undercover to see UC Skins!");
    					}
						else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
			            {
				    		format(string, sizeof(string), "* Agent %s took a Badge and a Gun from his locker.", sendername);
				    		SendClientMessage(playerid, COLOR_WHITE, "Type /equip, /agent and /undercover for equipments & Skins!");
    					}
						else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			            {
				    		format(string, sizeof(string), "* Soldier %s took a Badge and a Gun from his locker.", sendername);
				    		SendClientMessage(playerid, COLOR_WHITE, "Type /equip and /soldier for equipments & Skins!");
						}
						SendClientMessage(playerid, COLOR_WHITE,"* If you wish to use your tazer type /tazer");
						ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
						SafeResetPlayerWeapons(playerid);
						SafeGivePlayerWeapon(playerid, 24, 70);
						SafeGivePlayerWeapon(playerid, 3, 0);
						PlayerInfo[playerid][pTazerBullets] = 20;
						PlayerInfo[playerid][pDuty] = 1;
						SetPlayerToTeamColor(playerid);
						new factionskin = PlayerInfo[playerid][pChar];
    					SetPlayerSkin(playerid, factionskin);
    					AttachWeaponCorrectly(playerid, 23);
					}
					else if(PlayerInfo[playerid][pDuty] == 1)
					{
					    if(IsAFreecop(playerid))
					    {
					        format(string, sizeof(string), "* Voluntary Officer %s places his Badge and Gun in his locker.", sendername);
					        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
							SafeResetPlayerWeapons(playerid);
							PlayerInfo[playerid][pDuty] = 0;
							SetPlayerColor(playerid, TEAM_HIT_COLOR);
							new originalskin = PlayerInfo[playerid][pModel];
	    					SetPlayerSkin(playerid, originalskin);
	    					SetPlayerWeapons(playerid);
							return 1;
						}
					    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
					    {
					        OnSwatDuty[playerid] = 0;
							format(string, sizeof(string), "* Officer %s places his Badge and Gun in his locker.", sendername);
						}
						else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
						{
						    OnTacticalDuty[playerid] = 0;
						    format(string, sizeof(string), "* Agent %s places his Badge and Gun in his locker.", sendername);
						}
						else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			            {
			                OnSpecialFDuty[playerid] = 0;
				    		format(string, sizeof(string), "* Soldier %s places his Badge and Gun in his locker.", sendername);
						}
						ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
						SafeResetPlayerWeapons(playerid);
						SafeSetPlayerArmour(playerid, 0);
						SafeGivePlayerWeapon(playerid, 41, 500);
						PlayerInfo[playerid][pDuty] = 0;
						SetPlayerColor(playerid, TEAM_HIT_COLOR);
						new originalskin = PlayerInfo[playerid][pChar];
    					SetPlayerSkin(playerid, originalskin);
    					AttachWeaponCorrectly(playerid, 99);
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD2, "** You are not in a locker room !");
					return 1;
				}
			}
			else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
			{
			    if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1222.1793,-1246.3489,1287.8243))
			    {
			        SendClientMessage(playerid, COLOR_GRAD1, "You are not at the Medic Lockers!");
			        return 1;
				}
			    if(JobDuty[playerid] == 1)
			    {
			        SendClientMessage(playerid, COLOR_WHITE, "* You are now Off Duty from your Medic Job and will not receive calls anymore.");
			        JobDuty[playerid] = 0;
			        Medics -= 1;
			        SetPlayerColor(playerid, TEAM_HIT_COLOR);
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_WHITE, "* You are now On Duty with your Medic Job and will receive calls from people in need.");
			        JobDuty[playerid] = 1;
			        Medics += 1;
					SetPlayerColor(playerid, 0xFF828200);
			    }
			}
			else if(PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12)
			{
			    if(!IsPlayerInRangeOfPoint(playerid, 3.0, 2811.7837,-1167.3248,1025.5703))
			    {
			        SendClientMessage(playerid, COLOR_GRAD1, "You are not at the Firemen Lockers!");
			        return 1;
				}
			    if(JobDuty[playerid] == 1)
			    {
			        SendClientMessage(playerid, COLOR_WHITE, "* You are now Off Duty from your Firemen Job and will not receive calls anymore.");
			        JobDuty[playerid] = 0;
			        SetPlayerColor(playerid, TEAM_HIT_COLOR);
			        SafeResetPlayerWeapons(playerid);
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_WHITE, "* You are now On Duty with your Firemen Job and will receive calls from people in need.");
			        JobDuty[playerid] = 1;
					SetPlayerColor(playerid, 0xAA333300);
					SafeGivePlayerWeapon(playerid, 42, 2500);
					SafeGivePlayerWeapon(playerid, 6, 1);
			    }
			}
			else if(PlayerInfo[playerid][pJob] == 17)
   			{
       			if(JobDuty[playerid] == 1)
       			{
           			SendClientMessage(playerid, COLOR_WHITE, "* You are now Off Duty from your Pizza Delivery Job and will not receive calls anymore.");
           			JobDuty[playerid] = 0;
           			PizzaBoys -= 1;
       			}
       			else
       			{
           			SendClientMessage(playerid, COLOR_WHITE, "* You are now On Duty with your Pizza Delivery Job and will receive calls from people in need.");
           			JobDuty[playerid] = 1;
        			PizzaBoys += 1;
        			GetPlayerName(playerid,sendername,sizeof(sendername));
   					format(string, sizeof(string), "[Advert] Well stacked pizza worker %s is now On Duty, /call 111 to order a pizza.", sendername);
	    			OOCNews(0xFF7E00AA,string);
				}
			}
			else if(PlayerInfo[playerid][pJob] == 7)
			{
			    if(JobDuty[playerid] == 1)
			    {
			        SendClientMessage(playerid, COLOR_WHITE, "* You are now Off Duty from your Car Mechanic Job and will not receive calls anymore.");
			        JobDuty[playerid] = 0;
			        Mechanics -= 1;
			    }
			    else
			    {
			        SendClientMessage(playerid, COLOR_WHITE, "* You are now On Duty with your Car Mechanic Job and will receive calls from people in need.");
			        JobDuty[playerid] = 1;
			        Mechanics += 1;
			        GetPlayerName(playerid,sendername,sizeof(sendername));
   					format(string, sizeof(string), "[Advert] Car mechanic %s is now On Duty, /call 555 to call a mechanic.", sendername);
	    			OOCNews(0x2993EDAA,string);
			    }
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "   You are not a Cop !");
			}

			new y, m, d;
			new h,mi,s;
			getdate(y,m,d);
			gettime(h,mi,s);
			format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /duty",d,m,y,h,mi,s,sendername);
			CommandLog(string);
		}
		return 1;
	}
Reply

ok..
I need help with /v sell..
Anyone?
When I sell my car.. and give GMX.. the others cars bug.
Reply

Thanks work perfectly
Reply

Quote:
Originally Posted by Ricop522
View Post
ok..
I need help with /v sell..
Anyone?
When I sell my car.. and give GMX.. the others cars bug.
Try /resetcars
Reply

Where need to remove - when someone registred on the server if he male he's take Only 1 skin every male
and if she female so 1 skin for female not randomaly
Reply

Quote:
Originally Posted by Ricop522
View Post
ok..
I need help with /v sell..
Anyone?
When I sell my car.. and give GMX.. the others cars bug.


@venice
Don't have this cmd on ravens..


When I sell the car ID 1, the car ID 2 bug's..


Anyone fix ?
Reply

Quote:
Originally Posted by Ricop522
View Post
@venice
Don't have this cmd on ravens..


When I sell the car ID 1, the car ID 2 bug's..


Anyone fix ?
Let me help you use /restartcars
Reply

Quote:
Originally Posted by Vlad_Dubonos
View Post
Let me help you use /restartcars

On my RG the ID of car continue CarID: 2

: (
Reply

What you mean RG ?
Reply

1D10T, do you have other maps with PAWNO files on your computer?
Reply

Quote:
Originally Posted by chikimoni
Посмотреть сообщение
When buy a watches time format is invalid. And after reconnect it shows normally ! What to do?
Restart the server normal it is than fixed.

Quote:
Originally Posted by Miguel_Teixeira
Посмотреть сообщение
i deleted the watch, but now when i log in or do some anim e got it on the middle of the screen and if i press right buttom of the mouse he dissapear, how to fix that! ?
Can you maybe make a few screens or a movie of it?

Quote:
Originally Posted by kadestyle
Посмотреть сообщение
When I change the name of my house and I do a reboot it disappears ... And sometimes the rent too ...
How have you changed your housename? (in files or with a cmd)

Quote:
Originally Posted by chikimoni
Посмотреть сообщение
Why the heart witch are loceted in prison does not healing ? Is it normal ?
What heart in the prison? Can you make a screen of it?


Quote:
Originally Posted by 1D10T
Посмотреть сообщение
I downloaded this script and it looks really nice like usual good job again. But when I compile it I get these errors:


Personally I think this has something to do with one of the Plugins but im not sure. Anyone know how I can resolve this? Might be nice to have this solved so I can actually compile when I modify the script xD

Thanks in advance y'all

EDIT:
I use the default stuff. I just unzipped the .rar and changed the rcon password. Server runs fine, its just compiling that gives me errors :O
Use the Pawno in the script.
Reply

/imageshack/f/8eo4qhqn.jpg/

here is my print

edit: the hours you see up screen is a FS, cuz when was morning with the other hours it was adding a 0 at it.
Ex: 11:45 Should be 011:45
Reply

Quote:

1D10T, do you have other maps with PAWNO files on your computer?

Yes I've got other maps on my pc but I have made a single map for Raven's script.

Knight47,
What doe you mean by
Quote:

Use the Pawno in the script.

Reply

Ok I solved it. I copied the .so and .dll and .inc (plugins and includes) into all my other pawno maps and now it works. Thanks for the tips all
Reply

Quote:
Originally Posted by Miguel_Teixeira
Посмотреть сообщение
/imageshack/f/8eo4qhqn.jpg/

here is my print

edit: the hours you see up screen is a FS, cuz when was morning with the other hours it was adding a 0 at it.
Ex: 11:45 Should be 011:45
What for FS you are using? And where is the timer for ?

Quote:
Originally Posted by 1D10T
Посмотреть сообщение
Ok I solved it. I copied the .so and .dll and .inc (plugins and includes) into all my other pawno maps and now it works. Thanks for the tips all
Np, please next time edit your older post. Others you have a Double Post
Reply

you dont need the .so files if you dont use linux
Reply

Quote:
Originally Posted by Miguel_Teixeira
Посмотреть сообщение
you dont need the .so files if you dont use linux
No thats correct but as you use a Linux host like ServerFFS you need it. You can better always have the .dll and the .so files.
Reply

Quote:
Originally Posted by Knight 47
Посмотреть сообщение
No thats correct but as you use a Linux host like ServerFFS you need it. You can better always have the .dll and the .so files.
didnt kniw about the serverffs.

btw.
i use the gl_realtime, i just deleted the old one, was the texdraw.
Reply

Quote:
Originally Posted by Miguel_Teixeira
Посмотреть сообщение
i use the gl_realtime, i just deleted the old one, was the texdraw.
The bug was in this Textdraw or the timer?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)