Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: jimmy on January 13, 2012, 05:43:19 pm

Title: cmd problem
Post by: jimmy on January 13, 2012, 05:43:19 pm
hy guys i am scriping on GUPS i want to a cmd !stunt1,2,3, so on so i do this

    else if ( strcmp( cmd, "!stunt", true ) == 0 )
   {
      SetPlayerPos(playerid,-987.98461,265.30059,8.81042);
      SetPlayerVehicle(playerid, 156 );
      format(szMsg, 128, "%s gone to do a stunt.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
   }

what i did wrong??it saying undefined symbol "SetPlayerVehicle"
tell me the solution that when i type !stunt the player come to the saved position with car or bike
Title: Re: cmd problem
Post by: sseebbyy on January 13, 2012, 11:01:06 pm
hmmm. SetPlayerVehicle not are in VC:MP ! i think you get wrong includes...
Title: Re: cmd problem
Post by: Ankit on January 14, 2012, 06:32:29 am
PutDirectlyInVehicle(playerid,156);
Title: Re: cmd problem
Post by: jimmy on January 14, 2012, 07:12:47 am
    else if ( strcmp( cmd, "!stunt", true ) == 0 )
   {
      SetPlayerPos(playerid,-1046.64941,63.60477,11.29495);
      PutDirectlyInVehicle(playerid,156);
      format(szMsg, 128, "%s is gone to do a stunt.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
   }

see this what i did wrong.When i type !stunt the player automatically sit on car but why the player is not going to the POSITION
Title: Re: cmd problem
Post by: sseebbyy on January 14, 2012, 01:38:59 pm
    else if ( strcmp( cmd, "!stunt", true ) == 0 )
   {
      SetPlayerPos(playerid,-1046.64941,63.60477,11.29495);
      PutDirectlyInVehicle(playerid,156);
      format(szMsg, 128, "%s is gone to do a stunt.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
   }

see this what i did wrong.When i type !stunt the player automatically sit on car but why the player is not going to the POSITION

Cuse you put "PutDirectlyInVehicle(playerid,156)" 
Title: Re: cmd problem
Post by: jimmy on January 14, 2012, 02:42:16 pm
so there is no another cmd