Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: YoMan on March 03, 2012, 02:07:37 pm

Title: New Cmd
Post by: YoMan on March 03, 2012, 02:07:37 pm
Guys hi i made a New Cmd !gotov For Gups

Code: [Select]
else if ( strcmp( cmd, "!gotov", 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: !gotov [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
{
new vehicle = strval( tmp );
PutDirectlyInVehicle(playerid, strval( tmp ) );
}
return 1;
}

If u Think that i from some where so forget it i made this cmd my self  if u like my cmd than thanxs
Title: Re: New Cmd
Post by: rathan on March 03, 2012, 02:18:59 pm
Nice cmd i like it
Title: Re: New Cmd
Post by: YoMan on March 03, 2012, 02:22:48 pm
thanxs