Jump to content

Saringan_cs

Membru
  • Posts

    45
  • Joined

  • Last visited

    Never

Everything posted by Saringan_cs

  1. deci folosesc http://forum.sa-mp.com/showthread.php?t=199119 acest speedometer .. numai ca nsh dc nu pot folosi nici o comanda cu / ... nimic cum pot rezolva? [pawn]// Vehicle System 1.1 Beta © 2010 Johny C. & Luka P. // Contributors: Betamaster (Vehicle Name List) #include "a_samp.inc" #define FUEL_UPDATE_TIME (10000) stock Float:GetVehicleVelocityX(vehicleid){new Float:velocity_X, Float:velocity_dump_Y, Float:velocity_dump_Z;GetVehicleVelocity(vehicleid, velocity_X, velocity_dump_Y, velocity_dump_Z);velocity_dump_Y = 0.00;velocity_dump_Z = 0.00;return velocity_X;} stock Float:GetVehicleVelocityY(vehicleid){new Float:velocity_dump_X, Float:velocity_Y, Float:velocity_dump_Z;GetVehicleVelocity(vehicleid, velocity_dump_X, velocity_Y, velocity_dump_Z);velocity_dump_X = 0.00;velocity_dump_Z = 0.00;return velocity_Y;} stock Float:GetVehicleVelocityZ(vehicleid){new Float:velocity_dump_X, Float:velocity_dump_Y, Float:velocity_Z;GetVehicleVelocity(vehicleid, velocity_dump_X, velocity_dump_Y, velocity_Z);velocity_dump_X = 0.00;velocity_dump_Y = 0.00;return velocity_Z;} stock Float:SetVehicleSpeed(vehicleid, speed){new Float:angle;GetVehicleZAngle(vehicleid,angle);if(SetVehicleVelocity(vehicleid, (speed / 170.0) * floatsin(-angle, degrees), (speed / 170.0) * floatcos(-angle, degrees), 0.0))return(speed/170.0);else return(Float:0);} #define GetVehicleSpeed_P(%0) floatmul(floatsqroot(floatadd(floatpower(GetVehicleVelocityX(GetPlayerVehicleID(%0)), 2), floatadd(floatpower(GetVehicleVelocityY(GetPlayerVehicleID(%0)), 2), floatpower(GetVehicleVelocityZ(GetPlayerVehicleID(%0)), 2)))), 200) #define GetVehicleSpeed_V(%0) floatmul(floatsqroot(floatadd(floatpower(GetVehicleVelocityX(%0), 2), floatadd(floatpower(GetVehicleVelocityY(%0), 2), floatpower(GetVehicleVelocityZ(%0), 2)))), 200); #define Boolean bool enum E_VEHICLE_INFO { Boolean: E_VEHICLE_PROCESSED, Float: E_VEHICLE_FUEL, E_VEHICLE_FUEL_TIMER, Float: E_VEHICLE_HEALTH } new Text:VehicleText[MAX_PLAYERS][8], Float:LastSpeed[MAX_PLAYERS], VehicleInfo[MAX_VEHICLES][E_VEHICLE_INFO], Boolean:TextdrawsCreated[MAX_PLAYERS]; forward UpdateFuelByPlayerVehicleID(playerid); stock CreateTextdraws(playerid) { VehicleText[playerid][0] = TextDrawCreate(330.000000, 435.000000, "~r~Vehicle name: ~w~name~r~ Vehicle health:~w~ health ~r~Vehicle fuel: ~w~fuel");TextDrawAlignment(VehicleText[playerid][0], 2);TextDrawBackgroundColor(VehicleText[playerid][0], 255);TextDrawFont(VehicleText[playerid][0], 1);TextDrawLetterSize(VehicleText[playerid][0], 0.340000, 1.000000);TextDrawColor(VehicleText[playerid][0], -1); TextDrawSetOutline(VehicleText[playerid][0], 1);TextDrawSetProportional(VehicleText[playerid][0], 1);TextDrawUseBox(VehicleText[playerid][0], 1);TextDrawBoxColor(VehicleText[playerid][0], 100);TextDrawTextSize(VehicleText[playerid][0], 713.000000, 860.000000); VehicleText[playerid][1] = TextDrawCreate(321.000000, 409.000000, "000km/h");TextDrawAlignment(VehicleText[playerid][1], 2);TextDrawBackgroundColor(VehicleText[playerid][1], 255);TextDrawFont(VehicleText[playerid][1], 1);TextDrawLetterSize(VehicleText[playerid][1], 0.440000, 2.399999); TextDrawColor(VehicleText[playerid][1], -1);TextDrawSetOutline(VehicleText[playerid][1], 0);TextDrawSetProportional(VehicleText[playerid][1], 1);TextDrawSetShadow(VehicleText[playerid][1], 1);TextDrawUseBox(VehicleText[playerid][1], 1);TextDrawBoxColor(VehicleText[playerid][1], 100);TextDrawTextSize(VehicleText[playerid][1], 163.000000, -131.000000); VehicleText[playerid][2] = TextDrawCreate(259.000000, 433.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][2], 255);TextDrawFont(VehicleText[playerid][2], 1);TextDrawLetterSize(VehicleText[playerid][2], 0.500000, -0.200000); TextDrawColor(VehicleText[playerid][2], -1);TextDrawSetOutline(VehicleText[playerid][2], 0);TextDrawSetProportional(VehicleText[playerid][2], 1);TextDrawSetShadow(VehicleText[playerid][2], 1);TextDrawUseBox(VehicleText[playerid][2], 1);TextDrawBoxColor(VehicleText[playerid][2], 255);TextDrawTextSize(VehicleText[playerid][2], -45.000000, 0.000000); VehicleText[playerid][3] = TextDrawCreate(386.000000, 433.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][3], 255);TextDrawFont(VehicleText[playerid][3], 1);TextDrawLetterSize(VehicleText[playerid][3], 0.500000, -0.200000);TextDrawColor(VehicleText[playerid][3], -1);TextDrawSetOutline(VehicleText[playerid][3], 0); TextDrawSetProportional(VehicleText[playerid][3], 1);TextDrawSetShadow(VehicleText[playerid][3], 1);TextDrawUseBox(VehicleText[playerid][3], 1);TextDrawBoxColor(VehicleText[playerid][3], 255);TextDrawTextSize(VehicleText[playerid][3], 648.000000, 0.000000); VehicleText[playerid][4] = TextDrawCreate(259.000000, 409.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][4], 255);TextDrawFont(VehicleText[playerid][4], 1);TextDrawLetterSize(VehicleText[playerid][4], 0.500000, 2.200000);TextDrawColor(VehicleText[playerid][4], -1); TextDrawSetOutline(VehicleText[playerid][4], 0);TextDrawSetProportional(VehicleText[playerid][4], 1);TextDrawSetShadow(VehicleText[playerid][4], 1);TextDrawUseBox(VehicleText[playerid][4], 1);TextDrawBoxColor(VehicleText[playerid][4], 255);TextDrawTextSize(VehicleText[playerid][4], 253.000000, 0.000000); VehicleText[playerid][5] = TextDrawCreate(388.500000, 407.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][5], 255);TextDrawFont(VehicleText[playerid][5], 1);TextDrawLetterSize(VehicleText[playerid][5], 0.500000, -0.100000);TextDrawColor(VehicleText[playerid][5], -1); TextDrawSetOutline(VehicleText[playerid][5], 0);TextDrawSetProportional(VehicleText[playerid][5], 1);TextDrawSetShadow(VehicleText[playerid][5], 1);TextDrawUseBox(VehicleText[playerid][5], 1);TextDrawBoxColor(VehicleText[playerid][5], 255);TextDrawTextSize(VehicleText[playerid][5], 253.000000, 24.000000); VehicleText[playerid][6] = TextDrawCreate(386.000000, 408.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][6], 255);TextDrawFont(VehicleText[playerid][6], 1);TextDrawLetterSize(VehicleText[playerid][6], 0.500000, 2.599999);TextDrawColor(VehicleText[playerid][6], -1); TextDrawSetOutline(VehicleText[playerid][6], 0);TextDrawSetProportional(VehicleText[playerid][6], 1);TextDrawSetShadow(VehicleText[playerid][6], 1);TextDrawUseBox(VehicleText[playerid][6], 1);TextDrawBoxColor(VehicleText[playerid][6], 255);TextDrawTextSize(VehicleText[playerid][6], 385.000000, 0.000000); VehicleText[playerid][7] = TextDrawCreate(676.000000, 448.000000, "_");TextDrawBackgroundColor(VehicleText[playerid][7], 255);TextDrawFont(VehicleText[playerid][7], 1);TextDrawLetterSize(VehicleText[playerid][7], 0.500000, -0.200000);TextDrawColor(VehicleText[playerid][7], -1); TextDrawSetOutline(VehicleText[playerid][7], 0);TextDrawSetProportional(VehicleText[playerid][7], 1);TextDrawSetShadow(VehicleText[playerid][7], 1);TextDrawUseBox(VehicleText[playerid][7], 1);TextDrawBoxColor(VehicleText[playerid][7], 255);TextDrawTextSize(VehicleText[playerid][7], -45.000000, 0.000000); TextdrawsCreated[playerid] = true; return 1; } static VehicleList[212][] = { {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"},{"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},{"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},{"Washington"},{"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},{"Securicar"},{"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},{"Coach"}, {"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},{"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Trailer 2"},{"Turismo"},{"Speeder"},{"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},{"Skimmer"},{"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},{"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},{"Rustler"},{"ZR-350"}, {"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},{"Baggage"},{"Dozer"},{"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},{"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},{"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},{"Super GT"},{"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},{"Tanker"}, {"Roadtrain"},{"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},{"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},{"Willard"},{"Forklift"},{"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},{"Blade"},{"Freight"},{"Streak"},{"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},{"Firetruck LA"},{"Hustler"},{"Intruder"},{"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},{"Utility"},{"Nevada"},{"Yosemite"}, {"Windsor"},{"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},{"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},{"Bandito"},{"Freight Flat"},{"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},{"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},{"Tug"},{"Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},{"Freight Carriage"},{"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"}, {"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},{"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},{"Glendale"},{"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},{"Boxville"},{"Farm Plow"},{"Utility Trailer"} }; static Float:FuelStationCoords[][3] = { {2146.7766,2747.4424,10.8203},{2638.5972,1106.7181,10.8203},{1597.3271,2197.7712,10.8203},{608.5480,1699.3431,6.9922},{618.5945,1684.5210,6.9922},{-1470.1311,1863.6323,32.6328},{-737.2454,2742.9482,47.2266},{656.9113,-564.4317,16.510},{2202.2349,2474.3494,10.5258},{614.9333,1689.7418,6.6968},{-1328.8250,2677.2173,49.7665},{70.3882,1218.6783,18.5165},{2113.7390,920.1079,10.5255},{-1327.7218,2678.8723,50.0625},{-2409.5752,976.3114,45.2969},{-2026.0743,156.6390,28.7872},{-2244.5063,-2561.0781,31.9219}, {-1603.3645,-2709.4622,48.3874},{-1609.7147,-2717.6572,48.3874},{-88.9507,-1164.7794,2.3085},{-93.0625,-1173.2089,2.3244},{1003.7032,-937.5828,42.3281},{1940.6816,-1770.7999,13.3906},{1940.0111,-1776.4730,13.3906},{1381.7468,459.1537,20.3452},{-1680.0511,408.4660,7.1797},{-1672.9927,415.2118,7.1797},{-730.05,2744.22,47.22} }; public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/refuel", cmdtext, true) == 0) { new Boolean:found = false; for(new i=0; i < sizeof(FuelStationCoords); i++) { if(IsPlayerInRangeOfPoint(playerid, 6.5, FuelStationCoords[0], FuelStationCoords[1], FuelStationCoords[2])) { found = true; } } if(!found) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You must be near fuel station to use this command."); else if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You must be in a vehicle to use this command."); else { new Float:cost = ((100.00 - VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL]) * 100); if(GetPlayerMoney(playerid) < cost) { new szOutput[128]; format(szOutput, sizeof(szOutput), "SERVER: You don't have enough money to refuel your vehicle ($%i).", floatround(cost)); SendClientMessage(playerid, 0xFFFFFFFF, szOutput); } else { GivePlayerMoney(playerid, -(floatround(cost))); VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL] = 100.00; SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Your vehicle has been refueled successfully."); } } return 1; } return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if((newkeys & 16) && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL] < 1) { RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, true); } return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(!ispassenger) { if(VehicleInfo[vehicleid][E_VEHICLE_PROCESSED] == false) { VehicleInfo[vehicleid][E_VEHICLE_PROCESSED] = true; VehicleInfo[vehicleid][E_VEHICLE_FUEL] = 100.00; } else { if(VehicleInfo[vehicleid][E_VEHICLE_FUEL] == 0.00) { SetVehicleSpeed(GetPlayerVehicleID(playerid), 0); PutPlayerInVehicle(playerid, vehicleid, 0); TogglePlayerControllable(playerid, false); GameTextForPlayer(playerid, "~r~Out of fuel!", 1000, 4); } } if(GetVehicleModel(vehicleid) != 481 && GetVehicleModel(vehicleid) != 510 && GetVehicleModel(vehicleid) != 509) { VehicleInfo[vehicleid][E_VEHICLE_FUEL_TIMER] = SetTimerEx("UpdateFuelByPlayerVehicleID", FUEL_UPDATE_TIME, 1, "i", playerid); } } return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return KillTimer(VehicleInfo[vehicleid][E_VEHICLE_FUEL_TIMER]); } public UpdateFuelByPlayerVehicleID(playerid) { new const vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 510 || GetVehicleModel(vehicleid) == 509) { return 0; } new Float:memory[3]={0.00,0.00,0.00 }, result_speed=0; GetVehicleVelocity(vehicleid,memory[0],memory[1],memory[2]); result_speed = floatround(floatround(floatsqroot(((memory[0]*memory[0])+(memory[1]*memory[1]))+(memory[2]*memory[2]))*(136.666667),floatround_round)*(1.609344)); if(result_speed) { new _random = random(100); while(_random < 50) _random = random(100); new val[4]; format(val, sizeof(val), "0.%i", _random); if(floatsub(VehicleInfo[vehicleid][E_VEHICLE_FUEL], floatstr(val)) > 0.00) { VehicleInfo[vehicleid][E_VEHICLE_FUEL] = floatsub(VehicleInfo[vehicleid][E_VEHICLE_FUEL], floatstr(val)); new string[128], Float:health; GetVehicleHealth(GetPlayerVehicleID(playerid), health); format(string, sizeof(string), "~r~Vehicle name: ~w~%s~r~ Vehicle health:~w~ %.2f\%% ~r~Vehicle fuel: ~w~%.2f\%%", VehicleList[(GetVehicleModel(GetPlayerVehicleID(playerid)) - 400)], health / 1000 * 100, VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL]); TextDrawHideForPlayer(playerid, VehicleText[playerid][0]); TextDrawSetString(VehicleText[playerid][0], string); TextDrawShowForPlayer(playerid, VehicleText[playerid][0]); } else { VehicleInfo[vehicleid][E_VEHICLE_FUEL] = 0.00; SetVehicleSpeed(GetPlayerVehicleID(playerid), 0); TogglePlayerControllable(playerid, false); GameTextForPlayer(playerid, "~r~Out of fuel!", 1000, 4); } } return 1; } public OnPlayerUpdate(playerid) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(IsPlayerInAnyVehicle(playerid)) { new Float:speed = GetVehicleSpeed_P(playerid); if(speed != LastSpeed[playerid]) { new szOutput[9]; format(szOutput, sizeof(szOutput), "%ikm/h", floatround(speed)); TextDrawHideForPlayer(playerid, VehicleText[playerid][1]); TextDrawSetString(VehicleText[playerid][1], szOutput); TextDrawShowForPlayer(playerid, VehicleText[playerid][1]); LastSpeed[playerid] = speed; } new string[128], Float:health; GetVehicleHealth(GetPlayerVehicleID(playerid), health); if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 481 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 510 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 509) { format(string, sizeof(string), "~r~Vehicle name: ~w~%s~r~ Vehicle health:~w~ %.2f\%% ~r~Vehicle fuel: ~w~%.2f\%%", VehicleList[(GetVehicleModel(GetPlayerVehicleID(playerid)) - 400)], health / 1000 * 100, VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL]); } else { format(string, sizeof(string), "~r~Vehicle name: ~w~%s", VehicleList[(GetVehicleModel(GetPlayerVehicleID(playerid)) - 400)]); } if(TextdrawsCreated[playerid] == false) { CreateTextdraws(playerid); } TextDrawHideForPlayer(playerid, VehicleText[playerid][0]); TextDrawSetString(VehicleText[playerid][0], string); TextDrawShowForPlayer(playerid, VehicleText[playerid][0]); } } return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { for(new i=0; i <= 7; i++) { TextDrawShowForPlayer(playerid, VehicleText[playerid]); new string[128], Float:health; GetVehicleHealth(GetPlayerVehicleID(playerid), health); format(string, sizeof(string), "~r~Vehicle name: ~w~%s~r~ Vehicle health:~w~ %.2f\%% ~r~Vehicle fuel: ~w~%.2f\%%", VehicleList[(GetVehicleModel(GetPlayerVehicleID(playerid)) - 400)], health / 1000 * 100, VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_FUEL]); TextDrawHideForPlayer(playerid, VehicleText[playerid][0]); TextDrawSetString(VehicleText[playerid][0], string); TextDrawShowForPlayer(playerid, VehicleText[playerid][0]); VehicleInfo[GetPlayerVehicleID(playerid)][E_VEHICLE_HEALTH] = health; } } else { for(new i=0; i <= 7; i++) { TextDrawHideForPlayer(playerid, VehicleText[playerid]); } } return 1; } public OnFilterScriptExit() { for(new i=0; i < MAX_PLAYERS; i++) { for(new j=0; j <= 7; j++) { TextDrawDestroy(VehicleText[j]); } } return 1; } public OnPlayerDisconnect(playerid, reason) { for(new i=0; i <= 7; i++) { TextDrawDestroy(VehicleText[playerid]); } LastSpeed[playerid] = 0.00; return 1; } public OnPlayerConnect(playerid) { TextdrawsCreated[playerid] = false; CreateTextdraws(playerid); return 1; } [/pawn]
  2. -- poi eo am fst pleacat la antrenament .... si nu am vz +ca au sters postu ,,
  3. Dc miati sters celalalt topic :@ ...... cum spuneam D: cum fac ca speedometeru sa imi mearga din 1 in 1 km de ex : 19 20 21 22 23 24 25 etc .. nu din 10 15 12 13 ex : 190 23 52 12 43 etc folosesc acest speedometer http://forum.sa-mp.com/showthread.php?t=91403
  4. akm cand intru in masina ast 1 sec si ma da la 2000 si cv km/h )
  5. asta e sa schimbi viteza maxima.. dar pe mn ma intereseaza sa imi mearga dintun km in altu de ex 21-22-23-24-25-26-27-28... nu din 10-123-30-12-53 etc
  6. foloses acest SpeedoMeter. http://forum.sa-mp.com/showthread.php?t=91403 cum as pute faca sa nu mai mearga din 10-15-12-9 in 10-15-12-9 km/h ??
  7. primu meu server a fost gta.fr*ak*.ro akolo au arme personale si infite .. cum pot face si eo asta?? am postat aici ca nu mai este "cererti Tutoriale"
  8. de ce imi da aceste erroeri ? [pawn]C:\Documents and Settings\jamal\Desktop\New Folder\pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\pawno\include\utils.inc(51) : warning 219: local variable "count" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(1670) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(1714) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(1743) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(1812) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2036) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2106) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2479) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2670) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2762) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2779) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2787) : error 001: expected token: "-identifier-", but found "(" C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2790) : error 010: invalid function or declaration C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2793) : error 010: invalid function or declaration C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2795) : error 010: invalid function or declaration C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2800) : error 010: invalid function or declaration C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2804) : error 010: invalid function or declaration C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2806) : error 010: invalid function or declaration C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2812) : error 021: symbol already defined: "format" C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2814) : error 010: invalid function or declaration C:\Documents and Settings\jamal\Desktop\New Folder\gamemodes\GFPW.pwn(2816) : error 010: invalid function or declaration [/pawn]
  9. Deci va rog sa ma ajutati sa scit MYSQL din sa-mp P.s va rog nu imi ziceti sa'mi schimb GM
  10. DEci am un Server Iar ptr a ma inregistra pe SERVER trebuie intai sa ma inregistrez pe un anumit FORUm daca nu ma intregistrz pe acel forum nu ma lasa sa ma inregistrez nici in sa-mp pe acel svr ... so... cum scot chestia asta ?
  11. deci orice FS pun nu imi merge ... il adaug la filterscript dar degeaba...Dc'
  12. Daca scot aceasta comanda [pawn] { if(PlayerInfo[playerid][pCarLic] < 1) { if(PlayerDrunk[playerid] >= 5) { WantedPoints[playerid] += 1; SetPlayerCriminal(playerid,255, "Drunk Driving"); } if(TakingLesson[playerid] == 1) { } else { SendClientMessage(playerid, COLOR_GREY, " You don't know how to Drive yet, so you left the Car !"); RemovePlayerFromVehicle(playerid); } } else if(PlayerDrunk[playerid] >= 5) { WantedPoints[playerid] += 1; SetPlayerCriminal(playerid,255, "Drunk Driving"); } }//Done with car check if(IsACopCar(newcar)) { if(IsACop(playerid)) { } else { RemovePlayerFromVehicle(playerid); } }[/pawn] ..nu imi da nici un warn .. dar cand intru intr'o masina merge un metru sa zicem apoi ma da afara dc? E ptr Scoala DE Soferi
  13. ai introdus [pawn]new vla;[/pawn] la OnGameModeInit [pawn]vla = CreatePickup(1239, 23, 691.0215,-1275.7830,13.5603);[/pawn] la OnPlayerPickUpPickup [pawn]if(pickupid == vla) { SetPlayerInterior(playerid,1); SetPlayerPos(playerid,452.489990,-18.179698,1001.132812); }[/pawn] eo as dori sa intre in acest hq doar membri din vla. si am introdus aceast comanda [pawn]{ if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) }[/pawn] imi da o serie de 26 de errori care nu au treaba cu ce fac eo cred [pawn]C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1745) : error 004: function "SetPlayerToTeamColor" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1770) : error 004: function "SetPlayerToTeamColor" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1790) : error 004: function "SetPlayerCriminal" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1795) : error 004: function "SetPlayerCriminal" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1859) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1863) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1875) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1879) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1883) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1887) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1891) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1895) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1899) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1903) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1917) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1921) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1925) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1929) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1933) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1945) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1949) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1953) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1965) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(1969) : error 004: function "PlayerToPoint" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(2215) : error 004: function "SendIRCMessage" is not implemented C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(2237) : error 004: function "SendIRCMessage" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. [/pawn] +ca eo am introdus accea comanda in linile 3374-3377 pe langa ce am scris la OnPlayerPickUpPickup
  14. am rezolvat ... cred ca era comanda prea lunga )akm scriu /opentaxi si merge ms oricum stuntman
  15. ma intelege ca nu stiu unde trebuie sa o pun
  16. [pawn]if(PlayerInfo[giveplayerid][pAdmin] != 0) { SendClientMessage(playerid, color_red, "Acel jucator este admin"); } else {[/pawn] nu stiu unde trebuie pusa aceasta comanda
  17. stiu ca nu se cer scripturi .... da am cautat si nu am gasit .. deci as dori un script in care Admini sa nu se poata bana intre iei ... please help me
  18. poi tre sa dau de vreo 3-4 ori /opengatetaxi sa mi si deschida .. si cateodata imi ramane blocata sus si tre sa dau /opengatetaxi sa mi se inchida .. Aici e la OnPlayerCommandText [pawn]if(strcmp(cmdtext, "/opengatetaxi", true) == 0) { if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) { if(PlayerToPoint(10,playerid,1809.9000244141, -1889.8000488281, 20.200000762939)) { GetPlayerName(playerid, sendername, sizeof(sendername)); MoveObject(gatetaxi,1809.9000244141, -1889.8000488281, 15.199999809265,5.0); SetTimerEx("gatetaxiclose",5000,false,"d",playerid); format(string, sizeof(string), "* %s Has open the Taxi gate *", sendername); ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } }[/pawn] Forward [pawn]forward gatetaxiclose();[/pawn] CreateObject [pawn]gatetaxi = CreateObject(980, 1809.9000244141, -1889.8000488281, 15.199999809265, 0, 0, 270);[/pawn] Acici in jos la Public [pawn]public gatetaxiclose() // { MoveObject(gatetaxi,1809.9000244141, -1889.8000488281, 20.200000762939,5.0); }[/pawn] Ce am facut gresit please help me
  19. C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(10265) : warning 217: loose indentation C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(10277) : warning 217: loose indentation C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(25261) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 5976 bytes Code size: 1116472 bytes Data size: 4430136 bytes Stack/heap size: 16384 bytes; estimated max. usage=5103 cells (20412 bytes) Total requirements: 5568968 bytes 3 Warnings. Astea sunt liniile : [pawn] 10265 :if(strcmp(cmd,"/gate",true) == 0)[/pawn] [pawn]10277: if(strcmp(cmd, "/lock", true) == 0)[/pawn] [pawn]25261: MoveObject(gate, 1543, -1627.6999511719, 15.199999809265);[/pawn]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.