[FilterScript] [FS] Police Officer Job
#1

Police Officer Job Filterscript V1.1

This is a Police Officer Job script that I made. Useful for DM servers. :P
And I know that it's maybe easy made, blah, blah, blah... But it's something from my gamemode, and I just wanted to release it.
You must have +15 score, and if you choose to become a Police Officer, your will lose -15 score. And if you quit your job as a Police Officer, you'll not get your score back.


Commands:

/police
/quitpolice


And please don't remove any of the credits. You may edit as much as you want, but DON'T remove the credits.


Download:

pastebin: http://pastebin.com/f6e97abdd
PWN: http://files.uploadffs.com/e/f5eaebfb/p_o_j_v1.1.pwn
AMX: http://files.uploadffs.com/a/8f66af8d/p_o_j_v1.1.amx




Enjoy the script!
Reply
#2

Hahaha eddy i seen this in your server, I lol'ed
Reply
#3

not bad keep up the good work eddy


ByE ! xD
Reply
#4

Quote:
Originally Posted by Toniu_ [Left SA-MP
]
not bad keep up the good work eddy


ByE ! xD
Hey thank you, I know that this maybe isn't something special, but I just wanted to release it.
Reply
#5

Code:
forward PromotePlayerToPoliceOfficer(playerid);
public PromotePlayerToPoliceOfficer(playerid)
{
new string[256];
new string2[256];
new PlayerName[MAX_PLAYER_NAME];
PlayerScore = GetPlayerScore(playerid);
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
SetPlayerSkin(playerid, 285);
GivePlayerWeapon(playerid, 29, 1000);
GivePlayerWeapon(playerid, 31, 1000);
GivePlayerWeapon(playerid, 35, 20);
SetPlayerHealth(playerid, 500);
SetPlayerArmour(playerid, 500);
SetPlayerColor(playerid, COLOR_TRANSPARENT);
format(string, sizeof(string), "%s became a Police Officer! Watch out, he/she could be everywhere... Ready to kill you...", PlayerName);
format(string2, sizeof(string2), "Type /quitjob to quit your Job as a Police Officer");
SendClientMessageToAll(COLOR_BLUE, string);
SendClientMessage(playerid, COLOR_BLUE, string2);
SetPlayerScore(playerid, PlayerScore -15);
PlayerData[playerid][PoliceOfficer] = 1;
PoliceOfficerLimit++;
return 1;
}
Cant you just do

stock PromoteToPoliceOfficer(playerid);
instead of forwarding?
Reply
#6

You forgot a very important part, which is OnPlayerDisconnect.
Reply
#7

Quote:
Originally Posted by ruarai
Cant you just do

stock PromoteToPoliceOfficer(playerid);
instead of forwarding?
I'm always forwarding. I always did that. But I dunno.

Quote:
Originally Posted by //exora
You forgot a very important part, which is OnPlayerDisconnect.
Hm, you're right. Updated!

Quote:
Originally Posted by ByFukara
thanks man
You're welcome! :P
Reply
#8

Hmm,not bad,but add variables to check if the player is already IN a job or isn't.
(EX: ERROR: You already are an Police Officer!)
It's easy to spam the chatbox and get weapons at the same time.
Reply
#9

Quote:
Originally Posted by Karlip
Hmm,not bad,but add variables to check if the player is already IN a job or isn't.
(EX: ERROR: You already are an Police Officer!)
It's easy to spam the chatbox and get weapons at the same time.
I already did that.

pawn Code:
if(PlayerData[playerid][PoliceOfficer] == 1)
{
SendClientMessage(playerid, COLOR_RED, "You are already a Police Officer");
return 1;
}
Reply
#10

when i am typing /police, i turning into a S.W.A.T,and then i am get a ban from my server.
Reply
#11

OMFG! LOOOL

In your server is aggainst the rules to be a cop? LOL
Reply
#12

Quote:
Originally Posted by nunuh22
OMFG! LOOOL

In your server is aggainst the rules to be a cop? LOL
no... he probably has a anti-cheat that bans people when you get weapons.
Reply
#13

It will be Koo for my DM server i mean RPG
Reply
#14

What do i type in server.cfg ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)