[pawn]else if ( strcmp( cmd, "!getcar", true ) == 0 )
{
tmp = strtok( cmdtext, idx );
if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: !getcar [VehicleID]" );
else
{
new Float:Angle;
GetPlayerPos( playerid, x, y, z); GetPlayerFacingAngle( playerid,Angle);
if ( !Angle) SendClientMessage( playerid, COLOR_GREEN, "Error: Invalid vehicle!" );
SetVehiclePos( strval( tmp ),x+3,y+3,z,Angle);
format( szMsg, sizeof( szMsg ), "Spawning vehicle:[ %d ]", strval( tmp ) );
SendClientMessage( playerid, COLOR_GREEN, szMsg ); }
return 1;
}[/pawn]
I know there's some error in this command but you can use it.Hope it will working in yours.