Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started 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
-
hmmm. SetPlayerVehicle not are in VC:MP ! i think you get wrong includes...
-
PutDirectlyInVehicle(playerid,156);
-
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
-
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)"
-
so there is no another cmd