10.06.2012, 13:31
Bom, hoje baixei um velocimetro
e tem esse comando aki
o comando abastecer!!
sу qe de acordo com isso
if (INT_IsPlayerLoggedIn(playerid) == 0) return 0;
if (INT_CheckPlayerAdminLevel(playerid, 1) == 0) return 0;
ADMIN LEVEL?? CERTO??
quando tiro isso
LINHAS??
EM BRANCO!!
Ajuda Por Favor !!
e tem esse comando aki
pawn Код:
COMMAND:abastecer(playerid, params[])
{
new vid, engine, lights, alarm, doors, bonnet, boot, objective;
if (INT_IsPlayerLoggedIn(playerid) == 0) return 0;
if (INT_CheckPlayerAdminLevel(playerid, 1) == 0) return 0;
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Get the vehicleid
vid = GetPlayerVehicleID(playerid);
// Refuel the vehicle
AVehicleData[vid][Fuel] = MaxFuel;
// Also (re-)start the engine and turn on the lights in case the vehicle is completely out of fuel
GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vid, 1, 1, alarm, doors, bonnet, boot, objective);
// Let the player know about it
SendClientMessage(playerid, 0xFFFFFFFF, "{00FF00}Your vehicle is refuelled");
}
else
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}You're not driving a vehicle");
// Let the server know that this was a valid command
return 1;
}
sу qe de acordo com isso
if (INT_IsPlayerLoggedIn(playerid) == 0) return 0;
if (INT_CheckPlayerAdminLevel(playerid, 1) == 0) return 0;
ADMIN LEVEL?? CERTO??
quando tiro isso
pawn Код:
D:\Arquivos Maninho\• Brasil • [RedBull®] • Free Roam™ • І°№І • 0.3e\filterscripts\velo.pwn(937) : warning 203: symbol is never used: "INT_CheckPlayerAdminLevel"
D:\Arquivos Maninho\• Brasil • [RedBull®] • Free Roam™ • І°№І • 0.3e\filterscripts\velo.pwn(937) : warning 203: symbol is never used: "INT_IsPlayerLoggedIn"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
EM BRANCO!!
Ajuda Por Favor !!