Posts: 921
Threads: 15
Joined: Nov 2010
Reputation:
0
KEY_SUBMISSION
@OFF Esse anti-flood me irrita, This forum requires that you wait 120 seconds between posts. Please try again in 36 seconds. -.-
Posts: 109
Threads: 41
Joined: Dec 2010
Reputation:
0
So aparece que ligou o carro, nгo aparece que desligou !
tem id da tecla "-" ?
Posts: 1,197
Threads: 85
Joined: Jan 2011
PHP код:
new CarroLigo[MAX_PLAYERS};// Comeзo do GM
public OnGameModeInit()
{
ManualVehicleEngineAndLights();
CarroLigo[playerid] == 0;
return 1;
}
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(newkeys == KEY_SUBMISSION)
{
new a[8];
GetVehicleParamsEx(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);
if(a[1] == 0)
{
if(CarroLigo[playerid] == 0)
{
SendClientMessage(playerid,-1,"Vocк ligou o carro !");
SetVehicleParamsEx(a[0],1,a[2],a[3],a[4],a[5],a[6],a[7]);
CarroLigo[playerid] = 1;
}
}
else
{
if(CarroLigo[playerid] == 1)
{
SendClientMessage(playerid,-1,"Vocк desligou o carro !");
SetVehicleParamsEx(a[0],0,a[2],a[3],a[4],a[5],a[6],a[7]);
CarroLigo[playerid] = 0;
}
}
}
return 1;
}
Editado
agora ta funfando creio eu O.o.
Posts: 1,197
Threads: 85
Joined: Jan 2011
Nossa viajei agora, confundi O.o.
This forum requires that you wait 120 seconds between posts. Please try again in 46 seconds.
...
This forum requires that you wait 120 seconds between posts. Please try again in 20 seconds.