01.02.2013, 17:57
Duas Chaves abertas!
# edit tenta assim
# edit tenta assim
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new Travar[ MAX_PLAYERS ];
if(strcmp(cmdtext, "/travar", true) == 0) )
{ //ERRO AQUI
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;
}