SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

Reply
 
Thread Tools Display Modes
Old 01/06/2016, 08:50 PM   #1
SkyOfficially
Little Clucker
 
Join Date: Sep 2015
Posts: 18
Reputation: 0
Default Problema la biciclete

Cand ma urc pe o bicicleta.. pur si simplu.. nu se misca.. help ?

if(strcmp(cmd, "/engine", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
return 1;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 510 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 481 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 509)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Bicicletele nu au motor");
return 1;
}
new Vehicle = GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective;
GetPlayerName(playerid, sendername, sizeof(sendername));
if(Engine[Vehicle] == 0)
{
GetVehicleParamsEx(Vehicle,engine,lights,alarm,doo rs,bonnet,boot,objective);
SetVehicleParamsEx(Vehicle,VEHICLE_PARAMS_ON,light s,alarm,doors,bonnet,boot,objective);
Engine[Vehicle] = 1;
if(PlayerInfo[playerid][pAdmin] >= 1) TogglePlayerControllable(playerid, 1);
format(string, sizeof(string), "* %s baga cheile in contact si porneste motorul.", sendername);
ProxDetector(30.0, playerid, string, COLOR_MOVO,COLOR_MOVO,COLOR_MOVO,COLOR_MOVO,COLOR_ MOVO);
}
else
{
GetVehicleParamsEx(Vehicle,engine,lights,alarm,doo rs,bonnet,boot,objective);
SetVehicleParamsEx(Vehicle,VEHICLE_PARAMS_OFF,ligh ts,alarm,doors,bonnet,boot,objective);
Engine[Vehicle] = 0;
format(string, sizeof(string), "* %s opreste motorul.", sendername);
ProxDetector(30.0, playerid, string, COLOR_MOVO,COLOR_MOVO,COLOR_MOVO,COLOR_MOVO,COLOR_ MOVO);
}
}
}
return 1;
}
SkyOfficially is offline   Reply With Quote
Old 04/06/2016, 10:06 PM   #2
SkyOfficially
Little Clucker
 
Join Date: Sep 2015
Posts: 18
Reputation: 0
Default Re: Problema la biciclete

No Help me ?
SkyOfficially is offline   Reply With Quote
Old 04/06/2016, 10:13 PM   #3
Lucky13
Huge Clucker
 
Lucky13's Avatar
 
Join Date: Dec 2015
Location: Romania
Posts: 308
Reputation: 68
Default Re: Problema la biciclete

Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
	{
	         new vehid=GetPlayerVehicleID(playerid);
    	         if(GetVehicleModel(vehid) == 510 || GetVehicleModel(vehid) == 481 || GetVehicleModel(vehid) == 509)
		 {
		     SetVehicleParamsEx(vehid,1,0,0,0,0,0,0);
		 }
	}
	return 1;
}
Lucky13 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 05:41 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.