[FilterScript] [FS] Police Officer Job
#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


Messages In This Thread
[FS] Police Officer Job - by refshal - 16.07.2009, 01:39
Re: [FS]Police Officer Job - by DarkClone - 16.07.2009, 01:51
Re: [FS]Police Officer Job - by *ToM* - 16.07.2009, 06:36
Re: [FS]Police Officer Job - by refshal - 16.07.2009, 11:18
Re: [FS] Police Officer Job - by ruarai - 17.07.2009, 06:12
Re: [FS] Police Officer Job - by woot - 17.07.2009, 07:44
Re: [FS] Police Officer Job - by refshal - 17.07.2009, 10:31
Re: [FS] Police Officer Job - by Karlip - 17.07.2009, 10:44
Re: [FS] Police Officer Job - by refshal - 17.07.2009, 10:50
Re: [FS] Police Officer Job - by sandisk125 - 05.08.2009, 01:53
Re: [FS] Police Officer Job - by nunuh22 - 05.08.2009, 03:59
Re: [FS] Police Officer Job - by ruarai - 05.08.2009, 06:05
Re: [FS] Police Officer Job - by MaykoX - 05.08.2009, 06:12
Re: [FS] Police Officer Job - by Maxipower - 18.12.2009, 21:09

Forum Jump:


Users browsing this thread: 4 Guest(s)