Author Topic: New Cmd  (Read 2429 times)

0 Members and 1 Guest are viewing this topic.

Offline YoMan

  • Street Thug
  • *
  • Posts: 17
    • View Profile
New Cmd
« 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

Offline rathan

  • Street Thug
  • *
  • Posts: 16
  • vISIT MY FORUM www.f1-server.tk
    • View Profile
Re: New Cmd
« Reply #1 on: March 03, 2012, 02:18:59 pm »
Nice cmd i like it

Offline YoMan

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Re: New Cmd
« Reply #2 on: March 03, 2012, 02:22:48 pm »
thanxs