Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: jimmy on January 22, 2012, 11:48:03 pm

Title: i need some cmds
Post by: jimmy on January 22, 2012, 11:48:03 pm
 hey guys i need some cmds for gups !givecash , !lockcar , !unlockcar , !healp [PLAYER] to heal a player , !getcar , !ff to fix and flip , !spree and !myspree to see spree and !topkiller plzzz help me i want to imporve my scripts
Title: Re: i need some cmds
Post by: Nadeem on January 23, 2012, 01:26:04 pm
No body can give you the whole scripts
Title: Re: i need some cmds
Post by: SaFeeR on January 23, 2012, 01:29:48 pm
take cmds from my script
Title: Re: i need some cmds
Post by: _xXx_ on January 23, 2012, 01:39:00 pm
this is !lockcar cmd
Code: [Select]
else if ( strcmp( cmd, "!lockcar", true ) == 0 )
{
    tmp = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: !lockcar [VehicleID]" );
else if ( !IsVehicleExist( strval( tmp ) ) ) SendClientMessage( playerid, COLOR_GREEN, "Error: Unknown Vehicle" );
else if ( !IsVehicleOwnedShared( strval( tmp ), gPlayers[ playerid ] ) ) SendClientMessage( playerid, COLOR_GREEN, "You do not have the keys for that vehicle." );
else
{
format( szMsg, sizeof( szMsg ), "Locking vehicle:[ %d ]", strval( tmp ) );
SendClientMessage( playerid, COLOR_GREEN, szMsg );
SetVehicleDoorsStatus( strval( tmp ), 1 );
}
return 1;
}
this is !unlockcar cmd
Code: [Select]
else if ( strcmp( cmd, "!unlockcar", true ) == 0 )
{
    tmp = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: !unlockcar [VehicleID]" );
else if ( !IsVehicleExist( strval( tmp ) ) ) SendClientMessage( playerid, COLOR_GREEN, "Error: Unknown Vehicle" );
else if ( !IsVehicleOwnedShared( strval( tmp ), gPlayers[ playerid ] ) ) SendClientMessage( playerid, COLOR_GREEN, "You do not have the keys for that vehicle." );
else
{
format( szMsg, sizeof( szMsg ), "Unlocking vehicle:[ %d ]", strval( tmp ) );
SendClientMessage( playerid, COLOR_GREEN, szMsg );
SetVehicleDoorsStatus( strval( tmp ),0 );
}
return 1;
Title: Re: i need some cmds
Post by: _xXx_ on January 23, 2012, 01:43:23 pm
get other from other player i gave u this cmds
Title: Re: i need some cmds
Post by: jimmy on January 23, 2012, 03:43:11 pm
thanks SAFEER and XXX ______ u nadeem :P
Title: Re: i need some cmds
Post by: _xXx_ on January 23, 2012, 03:47:38 pm
no prob