[FS] Police Officer Job -
refshal - 16.07.2009
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!
Re: [FS]Police Officer Job -
DarkClone - 16.07.2009
Hahaha eddy i seen this in your server, I lol'ed
Re: [FS]Police Officer Job -
*ToM* - 16.07.2009
not bad keep up the good work eddy
ByE ! xD
Re: [FS]Police Officer Job -
refshal - 16.07.2009
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.
Re: [FS] Police Officer Job -
ruarai - 17.07.2009
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?
Re: [FS] Police Officer Job -
woot - 17.07.2009
You forgot a very important part, which is OnPlayerDisconnect.
Re: [FS] Police Officer Job -
refshal - 17.07.2009
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
Re: [FS] Police Officer Job -
Karlip - 17.07.2009
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.
Re: [FS] Police Officer Job -
refshal - 17.07.2009
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;
}
Re: [FS] Police Officer Job -
sandisk125 - 05.08.2009
when i am typing /police, i turning into a S.W.A.T,and then i am get a ban from my server.
Re: [FS] Police Officer Job -
nunuh22 - 05.08.2009
OMFG! LOOOL
In your server is aggainst the rules to be a cop? LOL
Re: [FS] Police Officer Job -
ruarai - 05.08.2009
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.
Re: [FS] Police Officer Job -
MaykoX - 05.08.2009
It will be Koo for my DM server i mean RPG
Re: [FS] Police Officer Job -
Maxipower - 18.12.2009
What do i type in server.cfg ?