Steal The Car / Vehicle
#1

Hello people (:

I am learning pawn and I wan't to make a steal the car server... Can someone give/make me a basic steal the car script?
Only the basics..
Of cours you'll get credits!

Thanks x

EDIT: I triйd to understand RiverShell but it's too dificult
Reply
#2

Quote:
Originally Posted by TheFluxThing
Hello people (:

I am learning pawn and I wan't to make a steal the car server... Can someone give/make me a basic steal the car script?
Only the basics..
Of cours you'll get credits!

Thanks x

EDIT: I triйd to understand RiverShell but it's too dificult
what do you mean by "Steal car script" ?
Reply
#3

Quote:
Originally Posted by Toniu_
Quote:
Originally Posted by TheFluxThing
Hello people (:

I am learning pawn and I wan't to make a steal the car server... Can someone give/make me a basic steal the car script?
Only the basics..
Of cours you'll get credits!

Thanks x

EDIT: I triйd to understand RiverShell but it's too dificult
what do you mean by "Steal car script" ?
You have to steal the other teams car and earn points... Something like on the Mini Missions server...
Thanks
Reply
#4

ohh hahah you explained it crappy but i get it.I am not sure about this but you can try it.

Код:
#define TEAM_GOOD 1 // this is the TEAM ID as far i as know :)
#define TEAM_BAD 2

new PlayerTeam[MAX_PLAYERS];
new cargoodguys;
new carbadguys;
Код:
cargoodguys = AddStaticVehicle(....);
carbadguys = AddStaticVehicle(....);
then... under OnPlayerEnterVehicle something like this:

Код:
if(PlayerTeam[playerid] == GOOD_GUYS)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,color,"You must defend the car"); // or something like this dunoo realy
}

if(PlayerTeam[playerid] == GOOD_BAD)
{
SendClientMessageToAll(color,"Attempts to Steal a Car from the good guys.");
SetPlayerCheckpoint(playerid, 0.0,0.0,0.0, 0.0); // put your position
}
Код:
public OnPlayerEnterCheckpoint(playerid)
{
  GameTextForAll(color,"BAD GUYS WON !!!",5000,5);
  GivePlayerMoney(playerid,10000);
  DisablePlayerCheckpoint(playerid);
  return 1;
}
I am too begginer in scripting but i hope this will help you.
Reply
#5

Quote:
Originally Posted by Naruto4
ohh hahah you explained it crappy but i get it.I am not sure about this but you can try it.

Код:
#define TEAM_GOOD 1 // this is the TEAM ID as far i as know :)
#define TEAM_BAD 2

new PlayerTeam[MAX_PLAYERS];
new cargoodguys;
new carbadguys;
Код:
cargoodguys = AddStaticVehicle(....);
carbadguys = AddStaticVehicle(....);
then... under OnPlayerEnterVehicle something like this:

Код:
if(PlayerTeam[playerid] == GOOD_GUYS)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,color,"You must defend the car"); // or something like this dunoo realy
}

if(PlayerTeam[playerid] == GOOD_BAD)
{
SendClientMessageToAll(color,"Attempts to Steal a Car from the good guys.");
SetPlayerCheckpoint(playerid, 0.0,0.0,0.0, 0.0); // put your position
}
Код:
public OnPlayerEnterCheckpoint(playerid)
{
  GameTextForAll(color,"BAD GUYS WON !!!",5000,5);
  GivePlayerMoney(playerid,10000);
  DisablePlayerCheckpoint(playerid);
  return 1;
}
I am too begginer in scripting but i hope this will help you.
Thank you!
Exactly what I needed (:
Reply
#6

What if it only have to be the "objective" car they should be pushed out of?
Reply
#7

i dont get you realy :S if the good guys enter the car they will be removed.The objective is to protect from the bad guys
Reply
#8

Quote:
Originally Posted by Naruto4
i dont get you realy :S if the good guys enter the car they will be removed.The objective is to protect from the bad guys
No, my idea was that there isn't a protection team...
Reply
#9

just remove the good team then
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)