13.12.2013, 10:11
(
Last edited by LevPopov; 20/12/2013 at 04:24 PM.
)
Hi All! Sorry for my bad english!
Video - [ame]http://www.youtube.com/watch?v=-Higd097Or4[/ame]
In OnGameModeInit:
In public OnPlayerCommandText
In Cow:
In Parrot:
Video - [ame]http://www.youtube.com/watch?v=-Higd097Or4[/ame]
PHP Code:
new Lev,Popov;
PHP Code:
Lev = CreateObject(19315, 0.0, 0.0, 0.0, 180.0, 0.0, 0.0);
Popov = 594;
PHP Code:
if (strcmp("/olen", cmdtext, true, 10) == 0)
{
new Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
Popov = CreateVehicle(594,x+2,y,z+2,a,-1,-1,60);
AttachObjectToVehicle(Lev, Popov,0.0,0.0,0.4,0.0,0.0,90.0);
LinkVehicleToInterior(Popov,6);
PutPlayerInVehicle(playerid,Popov,0);
return 1;
}
PHP Code:
new Leo,Nikolaevich;
PHP Code:
Leo = CreateObject(16442, 0.0, 0.0, 0.0, 180.0, 0.0, 0.0);
Popov = 594;
PHP Code:
if (strcmp("/cow", cmdtext, true, 10) == 0)
{
new Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
Nikilaevich = CreateVehicle(594,x+2,y,z+2,a,-1,-1,60);
AttachObjectToVehicle(Leo, Nikilaevich,0.0,0.0,0.4,0.0,0.0,90.0);
LinkVehicleToInterior(Nikilaevich,6);
PutPlayerInVehicle(playerid,Nikilaevich,0);
return 1;
}
PHP Code:
new Leo,Nikolaevich;
PHP Code:
Leo = CreateObject(19078, 0.0, 0.0, 0.0, 180.0, 0.0, 0.0);
Popov = 464;
PHP Code:
if (strcmp("/parrot", cmdtext, true, 10) == 0)
{
new Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
Nikilaevich = CreateVehicle(464,x+2,y,z+2,a,-1,-1,60);
AttachObjectToVehicle(Leo, Nikilaevich,0.0,0.0,0.4,0.0,0.0,90.0);
LinkVehicleToInterior(Nikilaevich,6);
PutPlayerInVehicle(playerid,Nikilaevich,0);
return 1;
}