Peršokti į turinį
arnold

sw reik pagalbos

Recommended Posts



tipo pawno?

-- Papildyta --

// C(ia gali bu-ti ju-su; norimas komentaras
// Eilute.s kurias sugeneravote ju-s i;re.mintos tarp: //////////////////
#define FILTERSCRIPT
//////////////////////////////S(itos eilute.s buvo pride.ta kuriant skripta; GTA-support.lt svetaine.je////////////////////////////////////
new mano_vartai;
//////////////////////////////S(itos eilute.s buvo pride.ta kuriant skripta; GTA-support.lt svetaine.je////////////////////////////////////

#include 

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" mano_vartai vartai pagal: svedas");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by svedas");
print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
//////////////////////////////S(itos eilute.s buvo pride.ta kuriant skripta; GTA-support.lt svetaine.je////////////////////////////////////
mano_vartai = CreateObject(2938, -2973.9604492188, -273.64489746094, 36.14391708374, 0, 0, 356);
//////////////////////////////S(itos eilute.s buvo pride.ta kuriant skripta; GTA-support.lt svetaine.je////////////////////////////////////
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)
{
return 1;
}

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[])
{
//////////////////////////////S(itos eilute.s buvo pride.ta kuriant skripta; GTA-support.lt svetaine.je////////////////////////////////////
if(strcmp("/an", cmdtext, true, 10) == 0)
{
MoveObject(mano_vartai, -2973.9599609375, -273.64453125, 29.64391708374, 3);
return 1;
}
if(strcmp("", cmdtext, true, 10) == 0)
{
MoveObject(mano_vartai, -2973.9604492188, -273.64489746094, 36.14391708374, 3);
return 1;
}
return 0;
//////////////////////////////S(itos eilute.s buvo pride.ta kuriant skripta; GTA-support.lt svetaine.je////////////////////////////////////
}

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;
}

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį

Kiek supratau tau neveikia vartai?

Cia pavizdys vartus kaip sukurti.

1. Sumapini ir gauni pvz sita:

CreateDynamicObject(980,2489.19995117,-1942.30004883,15.10000038,0.00000000,0.00000000,0.00000000);
CreateDynamicObject(980,2489.19921875,-1942.29980469,9.80000401,0.00000000,0.00000000,0.00000000);

2. Tada i vartai.txt ir init.txt idedi uzdarytu vartu komanda na cia turbut mokesi... ;D

3. I savo GM dabar tau reiks ikelti si teksta:

		if(playerDB[playerid][specialybe]==3 || playerDB[playerid][admin] ) //Pakeisk i savo specelybe darbo
{
     if (!strcmp("/ataxi", cmdtext, true)) // Cia tavo norima komanda
    {
  MoveDynamicObject(taxi1,2489.19921875,-1942.29980469,9.80000401, 1); // Atidarytu vartu kordiantes
  GameTextForPlayer(playerid,"~g~ Atidarote vartus",5000,5);
  return 1;
 }
     if (!strcmp("/utaxi", cmdtext, true)) // Cia tavo norima komanda
    {
     MoveDynamicObject(taxi1,2489.19995117,-1942.30004883,15.10000038, 1); // Uzdarytu vartu kordinates
  GameTextForPlayer(playerid,"~r~ Uzdarote vartus",5000,5);
  return 1;
 }
}

Jaigu tik ka supratau ko prasei... ;D

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį


Komentuoti gali tik prisijungę nariai

Jeigu turite paskyrą, prisijunkite

Sukurti paskyrą

Sukurkite paskyrą mūsų forume

Registruotis

Prisijungti

Turite paskyrą? Prisijunkite

Prisijungti dabar

  • Narių peržiūri šį forumą:   0 nariai

    Nėra registruotų narių peržiūrinčių šį forumą.


  • SuperGames programele
  • SuperGames programele


×