SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 22/03/2015, 12:15 AM   #1
DRP
Big Clucker
 
Join Date: Apr 2014
Posts: 133
Reputation: 46
Default Light Role Play Job System

Hello people, I've been trying to script something, to show myself I can script something, so I tried to make a Job System for Light Role Play, details will be shown below, but I recommend you to use it for Light Role Play. NOTE: THIS IS MY FIRST SCRIPT I'VE EVER SUCCED


Using this script for Medium-High Role Play wouldn't be RECOMMENDED!

There's only two jobs, which are:Taxi Driver and Gun Dealer

Gun Dealer's Job: /arms /deagle /shotgun

Taxi Driver's Job:/taxi /work


This is also recommended for freeroam servers.

I know it's kinda shitty, but I think it's good enough for light roleplay or freeroams, no hate please.

Code:
#include <a_samp>
#include <zcmd>

#define COLOR_YELLOW 	  0xFFFF00AA
#define WEAPONSKILL_DESERT_EAGLE		2
#define WEAPONSKILL_SHOTGUN				3

#if defined players_included
	#endinput
#endif
#define players_included
#pragma library players

new pTeam[MAX_PLAYERS]; // The variable storing a player's team

#define team_gun   1 // team for arms dealer
#define team_taxi   2 // team to design taxi drivers
#define team_civil   4 // team to design normal players


CMD:jobs(playerid,params[])
{
	SendClientMessage(playerid, COLOR_YELLOW, "Taxi Job - /taxi, Gun Dealer Job - /arms, ");
	return 1;
}

CMD:gunhelp(playerid,params[])
{
	pTeam[playerid] = team_gun;
	SendClientMessage(playerid, COLOR_YELLOW, "/deagle /shotgun");
	return 1;
}

CMD:arms(playerid,params[])
{
	pTeam[playerid] = team_gun;
	SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You are now a gun dealer, /quitjob to leave");
	return 1;
}

CMD:deagle(playerid,params[])
{
	if(pTeam[playerid] == team_gun)
	SendClientMessage(playerid, COLOR_YELLOW, "You gave out a deagle!");
	GivePlayerWeapon(playerid, 24, 100);
	return 1;
}

CMD:shotgun(playerid,params[])
{
	if(pTeam[playerid] == team_gun)
	SendClientMessage(playerid, COLOR_YELLOW, "You gave out a shotgun!");
	GivePlayerWeapon(playerid, 25, 100);
	return 1;
}

CMD:taxihelp(playerid,params[])
{
	pTeam[playerid] = team_taxi;
	SendClientMessage(playerid, COLOR_YELLOW, "/taxi");
	return 1;
}

CMD:taxi(playerid,params[])
{
	pTeam[playerid] = team_taxi;
	SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You are now a taxi driver, /quitjob to leave");
	return 1;
}

CMD:work(playerid,params[])
{
	if(pTeam[playerid] == team_taxi)
	SendClientMessage(playerid, COLOR_YELLOW, "You started the work fare, you got 200$ now!");
	GivePlayerMoney(playerid,200);
	return 1;
}

CMD:quitjob(playerid,params[])
{
	pTeam[playerid] = team_civil;
	SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You just quitted your job!");
	return 1;
}
DRP is offline   Reply With Quote
Old 22/03/2015, 12:25 AM   #2
WardenCS
Gangsta
 
WardenCS's Avatar
 
Join Date: Feb 2009
Posts: 899
Reputation: 14
Default Re: Light Role Play Job System

I'll suggest you to remove player's money when his gun dealer, or that command would be abused in any server

also for quitjob
Code:
CMD:quitjob(playerid,params[])
{
if(pTeam[playerid] != 4)
{
	pTeam[playerid] = team_civil;
	SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You just quitted your job!");
}
else
{
SendClientMessage(playerid,0xBFC0C2FF,"You don't have a job!");
}
return 1;
}
So you need to work before you can quit a job

But the filterscript is okay, just needs a unique idea.
__________________
WardenCS

My creations
[Filterscript]Shoeties
[Filterscript]Body system


Request your scripts/snippets from me, PM me.
WardenCS is offline   Reply With Quote
Old 22/03/2015, 12:34 AM   #3
DRP
Big Clucker
 
Join Date: Apr 2014
Posts: 133
Reputation: 46
Default Re: Light Role Play Job System

Thanks, will be look at!
DRP is offline   Reply With Quote
Old 22/03/2015, 01:31 AM   #4
Wolfe
Big Clucker
 
Join Date: Feb 2015
Posts: 132
Reputation: 60
Default Re: Light Role Play Job System

Quote:
Originally Posted by DRP View Post
Thanks, will be look at!
Looks alright could use some adjustments but ye alright
Wolfe is offline   Reply With Quote
Old 22/03/2015, 09:27 AM   #5
Sellize
Gangsta
 
Sellize's Avatar
 
Join Date: Jan 2013
Location: (ง ͠ ͟ل͜ ͡)ง fight me irl
Posts: 708
Reputation: 293
Default Re: Light Role Play Job System

This is pretty bad since taxi drivers could easily spam their command to gain infinite money and arms dealers can get infinite weapons. Would NEVER use this for roleplay.
__________________
dead
Sellize is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best Role Play Admin System? EgyptForLife Scripting Help 9 10/09/2014 01:15 AM


All times are GMT. The time now is 11:27 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.