Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started 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
-
No body can give you the whole scripts
-
take cmds from my script
-
this is !lockcar cmd
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
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;
-
get other from other player i gave u this cmds
-
thanks SAFEER and XXX ______ u nadeem :P
-
no prob