Vice City Multiplayer
		VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started 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
			 
			
			- 
				Here we go again.......
why do you always have to copy others?
			 
			
			- 
				You Have A Problem
This Is Help To Rob vehicle To Player :P
			 
			
			- 
				it must have errors such as that vehicleid
			
 
			
			- 
				too many errors
			
 
			
			- 
				
[pawn]
now you can rob car cash and hp
mrockxkingbutt has successfully stole the valet of the vehicle.
vehicle says: Oh shit! Who stole ma' money?
			 
			
			- 
				Hahaha stole money in the car =)
			
 
			
			- 
				Where is the "vehicleid" defined ?  :-X
			
 
			
			- 
				
Where is the "vehicleid" defined ?  :-X
When you are not in the mood of posting but you still do it that happens  :-\
			 
			
			- 
				new Robbed[MAX_VEHICLES];
is work as new robbed[MAX_PLAYERS]
this define vehicleid or playerid
			 
			
			- 
				
new Robbed[MAX_VEHICLES];
is work as new robbed[MAX_PLAYERS]
this define vehicleid or playerid
another command failed....
nice try....
			 
			
			- 
				Nonfunctional code. Locked.