Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: mrockxkingbutt on March 21, 2013, 07:13:28 am

Title: [BROKEN] Now Can Rob A Vehicle Money And HP
Post by: mrockxkingbutt on March 21, 2013, 07:13:28 am
[pawn]new Robbed[MAX_VEHICLES];[/pawn]

now cmd
[pawn]                     else if ( strcmp( cmd, "rob", true ) == 0 )
   {
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else   if(Robbed[vehicleid] == 1) SendClientMessage(playerid,RED," You Cant Steal It Again ");
else if(!IsPlayerInAnyVehicle(playerid)) MessagePM(playerid, GREEN,"[Error] - Need to be inside a vehicle");   
else
{
IncPlayerCash(playerid,1000);
Robbed[vehicleid] = 1;
SendClientMessageToAll(RED," A Vehicle Has Been Robbed By RObbers");
SetVehicleHealth(vehicleid, 500);
SetVehicleTyre(vehicleid,0);
SetVehicleAlarm(vehicleid,1);
SetVehicleLights(vehicleid,1);
    }
      return 1;
   }[/pawn]

now you can rob car cash and hp
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: Doom on March 21, 2013, 09:19:11 am
Here we go again.......

why do you always have to copy others?
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: mrockxkingbutt on March 21, 2013, 10:34:09 am
You Have A Problem

This Is Help To Rob vehicle To Player :P
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: VC[88]PD on March 21, 2013, 11:47:40 am
it must have errors such as that vehicleid
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: Pain on March 21, 2013, 02:00:57 pm
too many errors
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: NeskWriter on March 21, 2013, 03:00:28 pm
[pawn]
now you can rob car cash and hp

Quote
mrockxkingbutt has successfully stole the valet of the vehicle.
vehicle says: Oh shit! Who stole ma' money?
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: dynavolt71 on March 21, 2013, 03:34:54 pm
Hahaha stole money in the car =)
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: sseebbyy on March 21, 2013, 04:09:43 pm
Where is the "vehicleid" defined ?  :-X
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: Doom on March 21, 2013, 04:24:44 pm
Where is the "vehicleid" defined ?  :-X

When you are not in the mood of posting but you still do it that happens  :-\
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: mrockxkingbutt on March 21, 2013, 04:35:10 pm
new Robbed[MAX_VEHICLES];
is work as new robbed[MAX_PLAYERS]
this define vehicleid or playerid
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: aledark24 on March 21, 2013, 06:27:44 pm
new Robbed[MAX_VEHICLES];
is work as new robbed[MAX_PLAYERS]
this define vehicleid or playerid

another command failed....

nice try....
Title: Re: Now Can Rob A Vehicle Money And HP
Post by: stormeus on March 22, 2013, 12:58:44 am
Nonfunctional code. Locked.