Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: mrockxkingbutt on December 14, 2012, 09:45:20 am
-
i have a cmd
!getcar
when i spawn a car it spawn but when i get init
and left it
and respawn it
it doesnot spawn
please give me a getcar cmd
that can spawn a car anytime any place
thanks
-
I should tell you that CreateVehicle doesn't work (it bugged). Learn details on vcmp pawn wiki :-\
-
please give me just a !getcar cmd
-
There is no cmds to get a car >:(
-
Solution1 : change from pawn to squirrel/mirc
Solution2 : Use
new car1;
car1 = GetVehicleID(CreateVehicle(params));
use in the commands : GetPlayerPos(Float:x,Float:y,Float:z); car1.SetVehiclePos(x1,y1,z1);
-
please if you have any script cmd
like
/c getcar
/c getveh
or
!getcar
!getveh
post here
-
[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.
-
And you should learn x,y,z.I think.
-
VC[88]PD, try not to multi-post and use the Edit button instead.
mrockxkingbutt, you should really start to learn Pawn/Squirrel and stop asking script from people.
-
please if you have any script cmd
like
/c getcar
/c getveh
or
!getcar
!getveh
post here
since im not on my computer now, i cant give you, but i have the cmd