01.02.2013, 18:10
pawn Код:
if(strcmp(cmdtext, "/travar", true) == 0) {
{
new Travar[ MAX_PLAYERS ];
new vehicleid = GetPlayerVehicleID( playerid ), engine,lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine,lights, alarm, doors, bonnet, boot, objective);
if( Travar[playerid] == 0)
{
Travar[playerid] = 1;
SetVehicleParamsEx(vehicleid, false,lights, alarm, doors, bonnet, boot, objective);
SendClientMessage( playerid, -1, " Veiculo Travado");
}
else if ( Travar[playerid] == 1)
{
Travar[playerid] = 0;
SetVehicleParamsEx(vehicleid, true,lights, alarm, doors, bonnet, boot, objective);
SendClientMessage( playerid, -1, " Veiculo Destravado");
}
return 1;
}