08.10.2011, 23:20
Entao to criando uma org aki mais ja tentei de todos os jeitos nao consigo
colocar os carros so para a org.
exo o cara da org pode pegar.
deis de ja obrigado.
quero so os de mecanicos
colocar os carros so para a org.
exo o cara da org pode pegar.
deis de ja obrigado.
quero so os de mecanicos
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define ONIBUS 0
new Profissao[MAX_PLAYERS];
#if defined FILTERSCRIPT
forward onibuscar[8];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
CreateObject(1257, 2399.094238, -1739.404785, 13.826067, 0.000000, 0.000000, 270.000000); //object (bustopm) (1)
CreateObject(1257, 2238.190674, -1739.389282, 13.826067, 0.000000, 0.000000, 270.000000); //object (bustopm) (2)
CreateObject(1257, 2438.115723, -1630.133057, 27.868876, 0.000000, 0.000000, 0.000000); //object (bustopm) (3)
CreateObject(1257, 2423.871826, -1630.517212, 27.842348, 0.000000, 0.000000, 180.000000); //object (bustopm) (4)
CreateObject(1257, 2437.551025, -1520.149902, 24.279865, 0.000000, 0.000000, 0.000000); //object (bustopm) (5)
CreateObject(1257, 2557.361572, -1478.219360, 24.297842, 0.000000, 0.000000, 0.000000); //object (bustopm) (6)
CreateObject(1257, 2577.884766, -1342.227051, 37.733032, 10.000000, 0.000000, 356.000000); //object (bustopm) (7)
CreateObject(1257, 2604.402100, -1263.628662, 47.896114, 0.000000, 0.000000, 266.000000); //object (bustopm) (8)
CreateObject(1257, 2677.144043, -1263.598511, 53.829578, 10.000000, 0.000000, 268.000000); //object (bustopm) (9)
CreateObject(1257, 2744.692139, -1226.459351, 63.785652, 10.000000, 0.000000, 0.000000); //object (bustopm) (10)
CreateObject(1257, 2678.759766, -1063.962891, 69.576065, 0.000000, 0.000000, 90.000000); //object (bustopm) (11)
CreateObject(1257, 2755.496826, -1056.116699, 46.880562, 346.000000, 0.000000, 270.000000); //object (bustopm) (12)
CreateObject(1257, 2831.071289, -1113.337891, 24.848112, 0.000000, 0.000000, 177.994995); //object (bustopm) (13)
CreateObject(1257, 2862.616943, -1355.993652, 11.253120, 0.000000, 0.000000, 190.000000); //object (bustopm) (14)
CreateObject(1257, 2817.834473, -1632.303589, 11.279493, 0.000000, 0.000000, 176.000000); //object (bustopm) (15)
CreateObject(1257, 2663.436279, -1650.581177, 11.146379, 0.000000, 0.000000, 90.000000); //object (bustopm) (16)
CreateObject(1257, 2901.045654, -887.941711, 11.326067, 0.000000, 0.000000, 0.000000); //object (bustopm) (18)
CreateObject(1257, 2880.596680, -892.855652, 11.154192, 0.000000, 0.000000, 0.000000); //object (bustopm) (19)
CreateObject(18449, 2953.214355, -651.011353, 8.561399, 0.000000, 0.000000, 0.000000); //object (cs_roadbridge01) (1)
CreateObject(18449, 2953.071045, -667.309937, 8.561399, 0.000000, 0.000000, 0.000000); //object (cs_roadbridge01) (2)
CreateObject(18449, 3032.524170, -667.332214, 8.500000, 0.000000, 0.000000, 0.000000); //object (cs_roadbridge01) (3)
CreateObject(18449, 3032.552246, -651.265320, 8.561399, 0.000000, 0.000000, 0.000000); //object (cs_roadbridge01) (4)
CreateObject(5837, 2909.454102, -659.270020, 10.967963, 358.000000, 0.000000, 0.000000); //object (ci_guardhouse1) (1)
CreateObject(2237, 3064.191895, -654.245361, 0.000000, 0.000000, 0.000000, 0.000000); //object (CJ_SHOVEL2) (1)
CreateObject(11083, 3149.281982, -671.778503, 12.250000, 0.000000, 0.000000, 92.000000); //object (drivingschlgnd_SFS) (1)
CreateObject(7191, 3226.824951, -668.181213, 11.216866, 0.000000, 0.000000, 92.000000); //object (vegasNnewfence2b) (1)
CreateObject(4100, 3205.956543, -634.518921, 10.943857, 0.000000, 0.000000, 47.999268); //object (meshfence1_LAn) (3)
CreateObject(980, 3205.463623, -649.410400, 12.015579, 0.000000, 0.000000, 88.000000); //object (airportgatepfechado) (1)
CreateObject(980, 3205.881836, -637.947327, 12.022659, 0.000000, 0.000000, 87.994995); //object (airportgate paberto) (2)
CreateObject(4100, 3205.168701, -661.446106, 10.943857, 0.000000, 0.000000, 47.999268); //object (meshfence1_LAn) (4)
CreateObject(4100, 3204.645996, -675.181458, 10.943857, 0.000000, 0.000000, 47.999268); //object (meshfence1_LAn) (5)
CreateObject(4100, 3203.870117, -703.854309, 10.943857, 0.000000, 0.000000, 49.999268); //object (meshfence1_LAn) (7)
CreateObject(980, 3204.106445, -691.852844, 12.015579, 0.000000, 0.000000, 87.994995); //object (airportgate) (1)
CreateObject(980, 3204.106445, -691.852539, 12.015579, 0.000000, 0.000000, 87.994995); //object (airportgate pfechado M) (2)
CreateObject(980, 3204.443115, -680.212097, 12.022659, 0.000000, 0.000000, 87.994995); //object (airportgate paberto MM) (4)
// veiculos emprego Onibus
onibuscar[0]=AddStaticVehicle(431,3241.52685547,-628.50512695,10.30728531,92.00000000,-1,-1,15); //Bus
onibuscar[1]=AddStaticVehicle(431,3241.61621094,-633.65081787,10.49218750,91.99951172,-1,-1,15); //Bus
onibuscar[2]=AddStaticVehicle(431,3241.82836914,-638.24633789,10.49218750,91.99951172,-1,-1,15); //Bus
onibuscar[3]=AddStaticVehicle(431,3242.04492188,-642.65997314,10.49926758,91.99951172,-1,-1,15); //Bus
onibuscar[4]=AddStaticVehicle(431,3242.24267578,-646.76184082,10.49218750,91.99951172,-1,-1,15); //Bus
onibuscar[5]=AddStaticVehicle(431,3242.56005859,-651.70928955,10.49218750,91.99951172,-1,-1,15); //Bus
onibuscar[6]=AddStaticVehicle(431,3242.58398438,-655.71185303,10.49218750,91.99951172,-1,-1,15); //Bus
onibuscar[7]=AddStaticVehicle(431,3242.70825195,-660.04064941,10.49218750,91.99951172,-1,-1,15); //Bus
onibuscar[8]=AddStaticVehicle(431,3242.62963867,-664.43884277,10.49218750,91.99951172,-1,-1,15); //Bus
// emprego Mecanico.
CreateVehicle(525,3245.11450195,-669.29455566,10.23926735,92.00000000,-1,-1,15); //Tow Truck
CreateVehicle(525,3245.07983398,-672.16564941,10.23926735,91.99951172,-1,-1,15); //Tow Truck
CreateVehicle(525,3245.32055664,-674.92938232,10.23926735,91.99951172,-1,-1,15); //Tow Truck
CreateVehicle(525,3245.51342773,-677.88018799,10.23926735,91.99951172,-1,-1,15); //Tow Truck
CreateVehicle(525,3245.68505859,-680.72735596,10.23218727,91.99951172,-1,-1,15); //Tow Truck
CreateVehicle(525,3245.64965820,-683.45782471,10.23218727,91.99951172,-1,-1,15); //Tow Truck
CreateVehicle(525,3246.50390625,-708.21606445,10.23218727,91.99951172,-1,-1,15); //Tow Truck
CreateVehicle(525,3246.32836914,-705.38256836,10.23218727,91.99951172,-1,-1,15); //Tow Truck
CreateVehicle(525,3246.08691406,-702.59020996,10.23218727,91.99951172,-1,-1,15); //Tow Truck
CreateVehicle(525,3246.19580078,-699.82708740,10.23218727,91.99951172,-1,-1,15); //Tow Truck
CreateVehicle(525,3245.96923828,-697.02569580,10.23218727,91.99951172,-1,-1,15); //Tow Truck
CreateVehicle(525,3246.03686523,-694.32788086,10.23218727,91.99951172,-1,-1,15); //Tow Truck
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
if(Profissao[playerid] == ONIBUS) // Se A Profissгo Dele For Taxista
SetPlayerPos(playerid, 1367.0944,-1633.3569,13.3828); // Seta Ele Para Um Certo Lugar, Coordenada X Y Z
return true;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/emprego", true) == 0)
{
if(Profissao[playerid] == ONIBUS)
{
SendClientMessage(playerid,0x80FF00AA,"Ola parabens voce й motorista de onibus.");
}
else
{
SendClientMessage(playerid,0x80FF00AA,"Vocк nгo й motorista de onibus e nгo pode usar este comando");
}
return 1;
}
if(!strcmp(cmdtext, "/pegaremprego", true))
if(IsPlayerInRangeOfPoint(playerid,5.0,2906.1350,-660.9215,11.0046,322.8840))
{
Profissao[playerid] = ONIBUS;
SendClientMessage(playerid, -1, "Voce pegou o emprego Motorista de Onibus");
return 1;
}
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
SalvarPlayer(playerid)
{
new Float:Vida;
new Float:Colete;
GetPlayerHealth(playerid, Vida);
GetPlayerArmour(playerid, Colete);
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[50];
format(String, sizeof(String), Contas, Nome);
dini_IntSet(String,"Profissao", gTeam[playerid]);
return 1;
}
SetarPlayer(playerid)
{
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[50];
format(String, sizeof(String), Contas, Nome);
gTeam[playerid] = dini_Int(String, "Profissao");
return 1;
}