[POMOC]Kako

Započeo Matrix_Green, Decembar 10, 2011, 18:16:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta:Noxius
Problem zanima me kako da napravim da umjesto komande /au upali stavi pritisnite shift
CMD:au(playerid, params[])
{
new engine,lights,alarm,doors,bonnet,boot,objective;
    new veh = GetPlayerVehicleID(playerid);
if(strcmp(params, "upali", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(veh != INVALID_VEHICLE_ID)
{
if(EngineStatus[playerid] == 0)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
EngineStatus[playerid] = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "You've turned the vehicle's engine {2F991A}on!");
}
else if(EngineStatus[playerid] == 1)
{
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
EngineStatus[playerid] = 0;
SendClientMessage(playerid, 0xFFFFFFAA, "You've turned the vehicle's engine {E31919}off!");
}
}
}
else {
SendClientMessage(playerid, 0x00FF00FF, "{E31919}You are not in a vehicle!");
}
}

evo to je komanda
Slike video//
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

1)ctrl+f i upisi public OnPlayerKeyStateChange

2) ispod toga prekopiraj komandu /au

3) umesto CMD:au(playerid, params[]) stavi if(newkeys == KEY_JUMP)

4)compajlaj i mora da radi

NAPOMENA : AKO ZELIS DA TI PALI SAMO NA "SHIFT" IZBRISI /AU KOMANDU IZ MODA .