Szerző Téma: Nem láttok semmit!  (Megtekintve 514 alkalommal)

Nem láttok semmit!
« Dátum: 2013. november 01. - 17:29:18 »
0 Show voters
Sziasztok
Az lenne a kérdésem hogy miért nem láttok semmit?
Más szerveren láttok csak az ennyémen nem (saját mód)
A föld átlátszó és ennyi ja meg még a lementet kocsikat se láttom :(
Mi lehet a baj?
Elõre kösz
 
/*Sziasztok én RobiHD(robdan00 írtam egy TDM módot!gyakorlás képen*/
#include
#include
#include
#include
// Csapatok defineje
#define Vietnam 0
#define Amcsika 1
static gTeam[MAX_PLAYERS];
#define RED 0xff0000AA
#define COLOR_DARKORANGE          0xFF7318FF
#define COLOR_SYSTEM              0xEFEFF7AA
#define COLOR_BLUE                0x0000FFAA
#define COLOR_GREY                0xAFAFAFAA
#define COLOR_GREEN               0x33AA33AA
#define COLOR_YELLOW              0xFFFF00AA
#define COLOR_WHITE               0xFFFFFFAA
#define COLOR_WITHE               0xFFFFFFAA
#define COLOR_PURPLE              0x9900FFAA
#define COLOR_BROWN               0x993300AA
#define COLOR_ORANGE              0xFF9933AA
#define COLOR_CYAN                0x99FFFFAA
#define COLOR_TAN                 0xFFFFCCAA
#define COLOR_PINK                0xFF66FFAA
#define COLOR_KHAKI               0x999900AA
#define COLOR_LIME                0x99FF00AA
#define COLOR_BLACK               0x000000AA
#define COLOR_TURQ                0x00A3C0AA
#define COLOR_LIGHTBLUE           0x00BFFFAA
#define COLOR_GREENISHGOLD        0xCCFFDD56
#define COLOR_LIGHTBLUEGREEN      0x0FFDD349
#define COLOR_NEUTRALBLUE         0xABCDEF01
#define COLOR_LIGHTCYAN           0xAAFFCC33
#define COLOR_LEMON               0xDDDD2357
#define COLOR_AQUA                0x7CFC00AA
#define COLOR_WHITEYELLOW         0xFFE87DAA
#define COLOR_BLUEAQUA            0x7E60FFAA
#define COLOR_GREENYELLOWWHITE    0xCBFF45AA
#define COLOR_DARKBLUE            0x15005EAA
#define COLOR_RED                 0xAA3333AA
#define COLOR_ULTRARED            0xFF0606FF
#define COLOR_WARNING             0xFB0000FF
#define COLOR_VIOLET              0x8F698FFF
#define DIALOG_0 100 //itt a dialog ID az 100
new bool:orvos[MAX_PLAYERS];
 
 
main()
{
print(\"\\n----------------------------------\");
print(\" Mod By KeRoZIN\");
print(\"----------------------------------\\n\");
}
new Zone;
public OnGameModeInit()
{
UsePlayerPedAnims();
SetGameModeText(\"VTW v0.5\");
Create3DTextLabel(\"Amerikai Hondvédség!!\",0xFFFF00AA,-1536.4232177734,483.62939453125,9.45285987854,50.0,0);
Create3DTextLabel(\"Belépni TILOS!!\",0xAA3333AA,-1529.6821289063,482.42361450195,7.1796875,50.0,0);
Zone = GangZoneCreate(-1980, -132, -924, 1032); // amcsi
// Textdraw
 
AddPlayerClass(287,-1216.0982666,479.2066650,8.6720561,349.5826,31,500,29,200,24,100); // amcsi gyalogos
AddPlayerClass(287,-1291.6999500,492.7999900,17.7000000,37.2331,24,100,29,250,0,0); // amcsi pilota
AddPlayerClass(285,-1216.0982666,479.2066650,8.6720561,90.2988,30,500,0,0,0,0); // amcsi mernok
    AddPlayerClass(285,-1291.6999500,492.7999900,17.7000000,349.5826,36,10,0,0,0,0); // amcsi tamogato
    AddPlayerClass(275,-1216.0982666,479.2066650,8.6720561,90.2988,30,500,0,0,0,0); // amcsi orvos
AddPlayerClass(122,-2062.1999500,-186.7000000,34.8000000,181.3347,31,500,29,200,24,100); // Vietnam gyalogos
AddPlayerClass(122,-2062.1999500,-186.7000000,34.8000000,278.9272,24,100,29,250,0,0); // Vietnam pilota
AddPlayerClass(121,-2062.1999500,-186.7000000,34.8000000,14.9766,30,500,0,0,0,0); // Vietnam mernok
AddPlayerClass(121,-2062.1999500,-186.7000000,34.8000000,181.3347,36,10,0,0,0,0); // Vietnam tamogato
AddPlayerClass(275,-2062.1999500,-186.7000000,34.8000000,14.9766,30,500,0,0,0,0); // Vietnam Orvos
//-----------------------------------------------------------------------------------------------------------------
//----------INGAME TEXT ------------------------------------------------------------------------------
 
// AMCSI HQ
AddStaticVehicleEx(520,-1434.6999500,495.2000100,19.2000000,270.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(520,-1457.6999500,501.2999900,10.9000000,270.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(425,-1407.4000200,495.6000100,19.1000000,0.0000000,95,10,15); //Hunter
AddStaticVehicleEx(447,-1418.4000200,495.2000100,18.3000000,0.0000000,32,32,15); //Seasparrow
AddStaticVehicleEx(520,-1436.8000500,508.5000000,19.1000000,270.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(548,-1292.0000000,495.0000000,20.1000000,270.0000000,245,245,15); //Cargobob
AddStaticVehicleEx(476,-1415.0000000,507.7999900,19.4000000,268.0000000,170,157,15); //Rustler
AddStaticVehicleEx(476,-1384.6999500,508.0000000,19.4000000,269.9950000,170,157,15); //Rustler
AddStaticVehicleEx(476,-1361.1999500,507.6000100,19.4000000,269.9950000,170,157,15); //Rustler
AddStaticVehicleEx(476,-1339.6999500,507.7000100,19.4000000,269.9950000,170,157,15); //Rustler
AddStaticVehicleEx(452,-1440.5000000,504.2999900,0.0000000,90.0000000,245,245,15); //Speeder
AddStaticVehicleEx(446,-1440.5999800,510.1000100,0.0000000,94.0000000,245,245,15); //Squalo
AddStaticVehicleEx(430,-1446.0999800,495.2000100,0.0000000,88.0000000,157,152,15); //Predator
AddStaticVehicleEx(595,-1472.3000500,487.7000100,0.0000000,90.0000000,89,110,15); //Launch
AddStaticVehicleEx(595,-1472.3000500,491.8999900,0.0000000,90.0000000,89,110,15); //Launch
AddStaticVehicleEx(595,-1487.0000000,483.2000100,0.0000000,90.0000000,89,110,15); //Launch
AddStaticVehicleEx(595,-1487.1999500,488.7999900,0.0000000,90.0000000,89,110,15); //Launch
AddStaticVehicleEx(595,-1486.9000200,494.2999900,0.0000000,90.0000000,89,110,15); //Launch
AddStaticVehicleEx(470,-1228.9000200,437.3999900,7.3000000,0.0000000,95,10,15); //Patriot
AddStaticVehicleEx(470,-1232.9000200,437.2000100,7.3000000,0.0000000,95,10,15); //Patriot
AddStaticVehicleEx(470,-1237.1999500,437.1000100,7.3000000,0.0000000,95,10,15); //Patriot
AddStaticVehicleEx(470,-1242.1999500,437.1000100,7.3000000,0.0000000,95,10,15); //Patriot
AddStaticVehicleEx(470,-1247.6999500,437.2000100,7.3000000,0.0000000,95,10,15); //Patriot
AddStaticVehicleEx(470,-1252.6999500,437.2999900,7.3000000,0.0000000,95,10,15); //Patriot
AddStaticVehicleEx(470,-1259.0000000,437.2999900,7.3000000,0.0000000,95,10,15); //Patriot
AddStaticVehicleEx(470,-1264.1999500,436.8999900,7.3000000,0.0000000,95,10,15); //Patriot
AddStaticVehicleEx(437,-1222.5000000,461.2000100,7.4000000,0.0000000,77,132,15); //Coach
AddStaticVehicleEx(437,-1223.0000000,440.7000100,7.4000000,0.0000000,77,132,15); //Coach
AddStaticVehicleEx(485,-1425.0000000,512.0000000,2.7000000,90.0000000,245,245,15); //Baggage
AddStaticVehicleEx(485,-1425.0999800,509.5000000,2.7000000,90.0000000,245,245,15); //Baggage
AddStaticVehicleEx(485,-1425.1999500,507.0000000,2.7000000,90.0000000,245,245,15); //Baggage
AddStaticVehicleEx(485,-1425.3000500,504.2999900,2.7000000,90.0000000,245,245,15); //Baggage
AddStaticVehicleEx(573,-1227.1999500,472.1000100,7.4000000,44.0000000,170,157,15); //Duneride
AddStaticVehicleEx(432,-1250.4000200,477.0000000,7.3000000,90.0000000,95,10,15); //Rhino
AddStaticVehicleEx(432,-1238.8000500,477.7999900,7.3000000,86.0000000,95,10,15); //Rhino
AddStaticVehicleEx(432,-1260.5999800,477.2999900,7.3000000,90.0000000,95,10,15); //Rhino
CreateObject(3816,-1239.6999500,454.6000100,14.7000000,0.0000000,0.0000000,270.4990000); //object(bighangar1_sfx) (1)
 
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid,classid)
{
if(gTeam[playerid] == Vietnam)
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,-2654.4,1424.2,912.4);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid,-2654.4-1.5,1424.2,912.4+0.7);
SetPlayerCameraLookAt(playerid,-2654.4,1424.2,912.4+0.7);
}
else if(gTeam[playerid] == Amcsika)
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,-2654.4,1424.2,912.4);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid,-2654.4-1.5,1424.2,912.4+0.7);
SetPlayerCameraLookAt(playerid,-2654.4,1424.2,912.4+0.7);
}
if(classid == 0 || classid == 1 || classid == 2)
{
    gTeam[playerid] = Amcsika;
}
else if(classid == 3 || classid == 4 || classid == 5)
{
    gTeam[playerid] = Vietnam;
}
   switch(classid)
   {
       case 0: { GameTextForPlayer( playerid, \"~w~Amerikai~g~ Gyalogos\", 7000, 4 ); }
       case 1: { GameTextForPlayer( playerid, \"~w~Amerikai~b~ Pilota\" , 7000, 4 ); }
       case 2: { GameTextForPlayer( playerid, \"~w~Amerikai~y~ Mernok\", 7000, 4 ); }
       case 3: { GameTextForPlayer( playerid, \"~w~Amerikai~y~ Tamogato\", 7000, 4 ); }
       case 4: { GameTextForPlayer( playerid, \"~r~Amerikai~y~ Orvos\", 7000, 4 ); }
       case 5: { GameTextForPlayer( playerid, \"~r~Viatnam~g~ Gyalogos\", 7000, 4 ); }
       case 6: { GameTextForPlayer( playerid, \"~r~Viatnam~b~ Pilota\", 7000, 4 ); }
       case 7: { GameTextForPlayer( playerid, \"~r~Viatnam~y~ Mernok\", 7000, 4 ); }
       case 8: { GameTextForPlayer( playerid, \"~r~Viatnam~y~ Tamogato\", 7000, 4 ); }
       case 9: { GameTextForPlayer( playerid, \"~r~Viatnam~y~ Orvos\", 7000, 4 ); }
   }
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0xff0000AA,\"Üdv Vietnámba élt túl a csatát és nyerj :)\");
SendClientMessage(playerid,0xFFFF00AA,\"Parancsok:/ujdonsag\");
ShowPlayerDialog(playerid, DIALOG_0, DIALOG_STYLE_MSGBOX, \"Kedves Játékos!\", \"A MÚD fejlesztés allat ál!\", \"Rendben\",\"\");
PlayAudioStreamForPlayer(playerid, !\"http://www.nm-ss.tarhely.biz/SAMP/Music/David%20Guetta/04%20Sweat%20-%20Snoop%20Dogg%20vs%20David%20Guetta.mp3\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid,100); // spawnkor 100élet lesz
SetPlayerArmour(playerid,100); // spawnkor 100pajzs lesz
GangZoneShowForPlayer(playerid, Zone, 0xBC0EE840); // amcsi
   if(GetPlayerSkin(playerid) == 275)  return orvos[playerid] = true;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
new string[128];
format(string, sizeof(string), \"[iD:%i]:%s\" , playerid, text);
SendClientMessageToAll(playerid, string);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
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;
}
//--------------------------------PARANCSOK-------------------------------------
CMD:ujdonsag(playerid, params)
{
 SendClientMessage(playerid,0xFFFF00AA,\"Ide kerülnek az újdonságok!\");
 SendClientMessage(playerid,0xFFFF00AA,\" -Kész van az Amerikai pilóta és támogató HQ\");
 SendClientMessage(playerid,0xFFFF00AA,\" -Csapatok kész vannak\");
 SendClientMessage(playerid,0xFFFF00AA,\"v0.1 VERZIÓ!!!!!!!\");
 SendClientMessage(playerid,0xFFFF00AA,\" -Kész van az AMCSI HQ szín\");
 return 1;
}
CMD:kill(playerid, params)
{
 SetPlayerHealth(playerid,0);
 SendClientMessage(playerid,0xAA3333AA,\"Sikeresen megölted magad!\");
 return 1;
}
CMD:gyogyit(playerid, params[])
{
        if(orvos[playerid] == true)
        {
            new Float:pos[3];
            GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            if(!strlen(params))
                {
                        SendClientMessage(playerid, 0xFFFFFFFF, \"HASZNÁLAT: /gyogyit jatekosid\");
                        SendClientMessage(playerid, 0xFFFFFFFF, \"A jatekosnak melletted kell lennie!\");
                }
              if(IsPlayerConnected(strval(params)))
                {
                    if(IsPlayerInRangeOfPoint(strval(params), 5.0, pos[0], pos[1], pos[2]))
                    {
                        SetPlayerHealth(strval(params), 100);
                    }
                    else return SendClientMessage(playerid, 0xFF0000FF, \"Hiba a játékos nincs a közeledben/ nincs elég közel\");
                }
                else return SendClientMessage(playerid, 0xFF0000FF, \"Hiba a játékos nincs csatlakozva\");
        }
        else return SendClientMessage(playerid, 0xFF0000FF, \"Hiba, te nem vagy orvos\");
   return 1;
}

Nem elérhető AnthonyGates

  • 546
  • AnthonyGates
    • Profil megtekintése
Nem láttok semmit!
« Válasz #1 Dátum: 2013. november 01. - 17:31:10 »
0 Show voters
OnPlayerSpawn Callbackbe, mivel a skinválasztónál Intit állítasz.:
 
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);

 
E: Az alap inti 0, javítva.
E2: Meg a VW is, még jó, hogy én mindent 1-en használok :)
« Utoljára szerkesztve: 2013. november 01. - 17:35:32 írta AnthonyGates »

Nem láttok semmit!
« Válasz #2 Dátum: 2013. november 01. - 17:50:03 »
0 Show voters
Köszi :)
Mostmár jó

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Nem láttok semmit!
« Válasz #3 Dátum: 2013. november 01. - 17:50:50 »
0 Show voters
[mod]Téma neve mindig a problémára utaljon![/mod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal