Forum www.plgfsamp.fora.pl Strona Główna
Forum www.plgfsamp.fora.pl Strona Główna -> Konkurs-> Konkurs
Napisz nowy tematOdpowiedz do tematu Zobacz poprzedni temat :: Zobacz następny temat
Konkurs
PostWysłany: Wto 10:52, 25 Mar 2008
Mustafa Turban
Administrator

 
Dołączył: 08 Mar 2008
Posty: 15
Przeczytał: 0 tematów

Pomógł: 15 razy
Ostrzeżeń: 0/5




Podaj minimum 4 komendy do mapki w kodzie (niemoze byc w filterscripts ) . Podanie o Admina opowiedz o twojej znajomosci RP .
Dla bardzie napaleńców na Admina i o wiekszy lvl to Dotacja na serwer minimum 10 zł


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Wto 11:20, 25 Mar 2008
Simon_Mora

 
Dołączył: 16 Mar 2008
Posty: 2
Przeczytał: 0 tematów

Ostrzeżeń: 0/5




eee ok juz wiem ze zle....;/


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Wto 11:31, 25 Mar 2008
Sebastian_Hitman

 
Dołączył: 22 Mar 2008
Posty: 7
Przeczytał: 0 tematów

Ostrzeżeń: 0/5




Mam 2 komendy.
Jedne to jest skrypt do wypadków.
Drugie to jest skrypt do ocknięcia z wypadku.

[code]
#include <a_samp>
#define FILTERSCRIPT
#define COLOR 0x00FF00FF
#define hp 10
new incar[MAX_PLAYERS];
new scan;
new Float:oldhealth[MAX_PLAYERS];
new Float:newhealth[MAX_PLAYERS];

public OnFilterScriptInit()
{
print("FS zamroczenia by homie");
return 1;
}

public OnPlayerConnect(playerid)
{
incar[playerid] = 0;
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
if(incar[playerid] == 1) KillTimer(scan);
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
if(incar[playerid] == 1) KillTimer(scan);
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid,newhealth[playerid]);
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
SetTimerEx("scanhp",1000,1,"i",playerid);
GetVehicleHealth(vehicleid,oldhealth[playerid]);
incar[playerid] = 1;
return 1;
}
if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
{
KillTimer(scan);
incar[playerid] = 0;
return 1;
}
return 1;
}

forward scanhp(playerid);
public scanhp(playerid)
{
if(!IsPlayerInAnyVehicle(playerid)) return 1;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid,newhealth[playerid]);
if(oldhealth[playerid] > (newhealth[playerid] + hp))
{
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid,COLOR,"Uważaj jak jeździsz! Uderzyłeś w coś, że zamroczyło cię na minutę");
SetTimerEx("defreeze",60000,0,"i",playerid);
}
GetVehicleHealth(vehicleid,oldhealth[playerid]);
return 1;
}

forward defreeze(playerid);
public defreeze(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}

A teraz na ocknięcie.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

if(strcmp(cmd, "/ocknij", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "WPISZ: /ocknij [id/nick]");
return 1;
}
new playa;
playa = ReturnUser(tmp);
if(gTeam[playerid] == TEAM_CYAN||PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4)//model
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
TogglePlayerControllable(playerid,1);
SendClientMessage(playerid,COLOR_GREEN,"Zostałeś Ocknięty przez Medyka.");
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Tylko Medyk może uzywać tej komendy!");
}
}
return 1;
}

Moja znajomość Rp jest Doskonała.
Znam wszystkie pojęcia i sie do nich stosuje.
Wciągnołem do gry narazie 2 osoby.


Post został pochwalony 0 razy

Ostatnio zmieniony przez Sebastian_Hitman dnia Wto 11:35, 25 Mar 2008, w całości zmieniany 3 razy
Zobacz profil autora
PostWysłany: Wto 11:43, 25 Mar 2008
Sebastian_Hitman

 
Dołączył: 22 Mar 2008
Posty: 7
Przeczytał: 0 tematów

Ostrzeżeń: 0/5




Teraz na Paintball.

#include <a_samp>
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Aqua Stunt Park");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Aqua Stunt Park");
print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
//Objects:
CreateObject(972, 2795.743164, -1765.295044, 36.194176, 0, 0, 35.2369);
CreateObject(972, 2796.551270, -1784.019165, 35.922493, 0, 0, 340.233);
CreateObject(972, 2784.979980, -1804.373901, 35.303162, 0, 0, 323.0442);
CreateObject(972, 2766.747070, -1817.531738, 35.538139, 0, 0, 293.8234);
CreateObject(972, 2744.321289, -1820.954590, 35.612617, 0, 0, 268.0403);
CreateObject(972, 2720.468018, -1817.421387, 36.335892, 0, 0, 256.8676);
CreateObject(972, 2700.881592, -1806.456909, 36.458717, 0, 0.8594, 230.2251);
CreateObject(972, 2687.282959, -1788.234131, 36.599846, 0, 0, 207.0202);
CreateObject(972, 2683.017822, -1745.628784, 37.949951, 0, 0, 333.3575);
CreateObject(972, 2684.161865, -1766.697021, 37.371140, 0, 1.7189, 176.1846);
CreateObject(972, 2706.319092, -1728.131836, 37.962555, 0, 0, 126.3372);
CreateObject(972, 2727.002686, -1722.871582, 38.044258, 0, 0, 88.522);
CreateObject(972, 2751.000488, -1725.187622, 38.151001, 0, 0, 80.787);
CreateObject(972, 2768.892822, -1735.875977, 38.161667, 0, 0, 44.6907);
CreateObject(972, 2784.029053, -1750.950928, 37.382256, 0, 0, 45.5501);
CreateObject(4724, 2779.634766, -1756.533325, 42.175102, 0, 0, 156.4175);
CreateObject(7921, 2770.696777, -1758.547974, 42.745895, 0, 0, 0);
CreateObject(7956, 2748.250488, -1755.811157, 44.265491, 0, 0, 0);
CreateObject(9337, 2750.534912, -1773.852173, 43.319191, 0, 0, 0);
CreateObject(18224, 2752.040039, -1805.947144, 43.460297, 0, 0, 0);
CreateObject(16370, 2708.252930, -1793.758301, 41.267750, 0, 0, 0);
CreateObject(3359, 2696.295166, -1752.094604, 40.580032, 0, 0, 0);
CreateObject(8947, 2712.562256, -1801.726685, 43.051128, 0, 5.1566, 209.7026);
CreateObject(11480, 2755.677002, -1776.321045, 44.051620, 0, 0, 0);
CreateObject(14826, 2754.788086, -1777.322510, 42.346077, 0, 0, 0);
CreateObject(3187, 2736.968994, -1744.020386, 46.835133, 0, 0, 0);
CreateObject(3279, 2745.776123, -1788.343750, 41.737068, 0, 0, 0);
CreateObject(852, 2753.728516, -1784.845703, 41.510269, 0, 0, 0);
CreateObject(2780, 2749.341309, -1787.086426, 41.652641, 0, 0, 0);
CreateObject(2780, 2741.853516, -1792.849243, 41.238899, 0, 0, 0);
CreateObject(2780, 2747.541748, -1787.241211, 49.415264, 0, 0, 0);
CreateObject(2780, 2742.210449, -1783.331299, 53.971443, 0, 0, 0);
CreateObject(2780, 2768.275391, -1786.986084, 40.633034, 0, 0, 0);
CreateObject(2780, 2784.373779, -1770.044434, 40.102539, 0, 0, 0);
CreateObject(2780, 2758.163086, -1742.915527, 42.460136, 0, 0, 0);
CreateObject(2780, 2743.324463, -1736.779175, 42.196625, 0, 0, 0);
CreateObject(2780, 2723.274902, -1802.031982, 40.304520, 0, 0, 0);
CreateObject(2780, 2742.413330, -1821.368164, 37.824272, 0, 0, 0);
CreateObject(2780, 2779.705566, -1811.594849, 35.831184, 0, 0, 0);
CreateObject(2780, 2791.633301, -1789.567505, 37.021229, 0, 0, 0);
CreateObject(2780, 2785.141602, -1782.104614, 39.078697, 0, 0, 0);
CreateObject(2780, 2763.775146, -1752.725220, 41.856270, 0, 0, 0);
CreateObject(2780, 2762.950928, -1751.734985, 41.907082, 0, 0, 0);
CreateObject(2780, 2754.505615, -1778.793457, 41.918922, 0, 0, 0);
CreateObject(2780, 2726.875000, -1806.004883, 40.043140, 0, 0, 0);
CreateObject(2780, 2722.699707, -1808.993286, 39.202938, 0, 0, 0);
CreateObject(2780, 2724.758789, -1808.254272, 39.455669, 0, 0, 0);
CreateObject(2780, 2726.047852, -1807.889648, 39.592308, 0, 0, 0);
CreateObject(2780, 2728.082031, -1804.679565, 40.188629, 0, 0, 0);
CreateObject(2780, 2725.867676, -1807.960815, 39.568771, 0, 0, 0);
CreateObject(2780, 2726.567383, -1808.463745, 39.488785, 0, 0, 0);
CreateObject(2780, 2727.842041, -1808.362427, 39.566906, 0, 0, 0);
CreateObject(2780, 2702.570313, -1759.197388, 41.163673, 0, 0, 0);
CreateObject(2780, 2699.824463, -1757.394043, 40.936306, 0, 0, 0);
CreateObject(2780, 2693.784424, -1756.680664, 40.436165, 0, 0, 0);
CreateObject(2780, 2690.573486, -1754.232666, 40.170303, 0, 0, 0);
CreateObject(2780, 2710.773682, -1783.968506, 41.017506, 0, 0, 0);
CreateObject(2780, 2719.017822, -1782.851196, 41.557587, 0, 0, 0);
CreateObject(2780, 2698.145508, -1792.755371, 39.240608, 0, 0, 0);
CreateObject(2780, 2731.853271, -1751.021362, 42.905094, 0, 0, 0);
CreateObject(2780, 2724.726318, -1750.036743, 42.751343, 0, 0, 0);
CreateObject(2780, 2713.107422, -1756.306519, 42.034103, 0, 0, 0);
CreateObject(2780, 2736.825439, -1775.279419, 42.708111, 0, 0, 0);
CreateObject(2780, 2743.026123, -1762.879395, 42.983425, 0, 0, 0);
CreateObject(2780, 2717.224609, -1722.530640, 40.632439, 0, 0, 0);
CreateObject(2780, 2740.078613, -1720.813843, 40.935272, 0, 0, 0);
CreateObject(2780, 2760.414307, -1724.104248, 40.642780, 0, 0, 0);
CreateObject(2780, 2771.798096, -1737.017700, 40.730148, 0, 0, 0);
CreateObject(3271, 2777.724609, -1783.437988, 41.118584, 0, 0, 0);
CreateObject(3277, 2713.160400, -1731.582520, 41.676346, 0, 0, 0);
CreateObject(2780, 2714.520264, -1730.825317, 42.176346, 0, 0, 0);
CreateObject(2780, 2737.144775, -1741.263184, 48.466560, 0, 0, 0);
CreateObject(2780, 2770.578125, -1772.177124, 41.543411, 0, 0, 0);
CreateObject(1466, 2715.711182, -1790.241333, 42.164402, 0, 0, 0);
CreateObject(1466, 2716.179443, -1791.654053, 43.583588, 0, 0, 0);
CreateObject(1466, 2716.517090, -1792.861694, 44.971577, 0, 0, 0);
CreateObject(2780, 2711.892822, -1789.549805, 46.542030, 0, 0, 0);
CreateObject(2780, 2702.334473, -1794.178833, 45.585793, 0, 0, 0);
CreateObject(2780, 2713.899902, -1809.011108, 45.829128, 0, 0, 0);
CreateObject(2780, 2717.538330, -1796.880493, 46.656765, 0, 0, 0);
CreateObject(967, 2762.488525, -1814.338501, 37.358620, 0, 0, 0);
CreateObject(3243, 2724.835449, -1767.782715, 42.807949, 0, 0, 0);
CreateObject(3615, 2763.281738, -1740.398560, 43.065079, 0, 0, 0);
CreateObject(3866, 2758.868408, -1822.144287, 44.114616, 0, 0, 0);
CreateObject(5837, 2743.842041, -1728.870361, 43.136471, 0, 0, 0);
CreateObject(4022, 2797.363281, -1785.215332, 39.503056, 0, 0, 15.4699);
}

public OnPlayerCommandText(playerid,cmdtext[])
{
if( !strcmp(cmdtext,"/pb",true ))
{
SetPlayerPos(playerid,2726.8276,-1750.7834,53.0986);
GivePlayerWeapon(playerid,29,500);//weapon mp5
}
return 0;
}

Nie wiem czy to dobre bo to filescript chyba.
Ale Mancini dowiedz sie jak sie wkłada filescripty na server to będzie zajebiście byśmy mieli Paintball((Nowy jesli jest))
Podsunołem też pomysł z tymi animacjami tylko Manicini nie mogłeś ich wrzucić ^^.
Nie wiesz jak wsadzić filescipts???http://sa-united.info/article26.htm Prosze tam wszystko jest jak instalować.


Post został pochwalony 0 razy

Ostatnio zmieniony przez Sebastian_Hitman dnia Wto 11:47, 25 Mar 2008, w całości zmieniany 1 raz
Zobacz profil autora
PostWysłany: Wto 12:26, 25 Mar 2008
Sebastian_Hitman

 
Dołączył: 22 Mar 2008
Posty: 7
Przeczytał: 0 tematów

Ostrzeżeń: 0/5




Teraz skrypt na Anty-drive-By.

Kod:
#include <a_samp>
#include <colors>
//==============================================================================
#pragma tabsize 0

#define COLOR_RED 0xFF0000AA
#define COLOR_POMARANCZOWY 0xFF661CFF

//==============================================================================
new koniecwiezienia[MAX_PLAYERS];
new czas_w_wiezieniu[MAX_PLAYERS];
//==============================================================================
public OnFilterScriptInit()
{
   print("\n-----------------------------");
   print("Anty Drive - By  matiego ");
   print("------------------------------\n");
   return 1;
}
//==============================================================================
public OnPlayerDeath(playerid, killerid, reason)
{
new killername[MAX_PLAYER_NAME];
new killerstate = GetPlayerState(killerid);
new str[256];
if((IsPlayerInAnyVehicle(killerid) && !IsPlayerInAnyVehicle(playerid) && killerstate == PLAYER_STATE_DRIVER && reason != WEAPON_VEHICLE)) {
GetPlayerName(killerid, killername, sizeof(killername));
format(str, sizeof(str), "*** %s został uwięziony za używanie Drive-By!", killername);
SendClientMessageToAll(CZERWONY, str);
SendClientMessage(killerid, CZERWONY, "*** Zostałeś uwięziony na 1 min.");
SetPlayerScore(killerid,GetPlayerScore(killerid)-1);
SetPlayerInterior(killerid, 3);
SetPlayerPos(killerid,197.9883,162.7670,1004.0);
czas_w_wiezieniu[killerid] = 1;
koniecwiezienia[killerid] = SetTimer("koniec_wiezienia", 60000, 0);
}
   return 1;
}
//==============================================================================
      public OnPlayerSpawn(playerid)
      {
      new killerid;
       if(czas_w_wiezieniu[killerid] == 1){
        SetPlayerInterior(killerid, 3);
      SetPlayerPos(killerid,197.9883,162.7670,1004.0);
         SendClientMessage(killerid, COLOR_RED, "* Opuścisz wiezienie, gdy odbędziesz karę!");
       }
       return 1;
       }
//==============================================================================
forward koniec_wiezienia(killerid);
public koniec_wiezienia(killerid)
{
if (czas_w_wiezieniu[killerid] == 1)
{
czas_w_wiezieniu[killerid] = 0;
SpawnPlayer(killerid);
SendClientMessage(killerid, POMARANCZOWY, "* Jesteś wolny!");
GameTextForPlayer(killerid,"~y~jestes wolny!",3000,5);
}
}
//==============================================================================


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Wto 12:32, 25 Mar 2008
Sebastian_Hitman

 
Dołączył: 22 Mar 2008
Posty: 7
Przeczytał: 0 tematów

Ostrzeżeń: 0/5




Tu na fajerwerki

stock sscanf(string[], format[], {Float,_}:...)
{
new
formatPos = 0,
stringPos = 0,
paramPos = 2,
paramCount = numargs();
while (paramPos < paramCount && string[stringPos])
{
switch (format[formatPos++])
{
case '\0':
{
return 0;
}
case 'i', 'd':
{
new
neg = 1,
num = 0,
ch = string[stringPos];
if (ch == '-')
{
neg = -1;
ch = string[++stringPos];
}
do
{
stringPos++;
if (ch >= '0' && ch <= '9')
{
num = (num * 10) + (ch - '0');
}
else
{
return 1;
}
}
while ((ch = string[stringPos]) && ch != ' ');
setarg(paramPos, 0, num * neg);
}
case 'h', 'x':
{
new
ch,
num = 0;
while ((ch = string[stringPos++]))
{
switch (ch)
{
case 'x', 'X':
{
num = 0;
continue;
}
case '0' .. '9':
{
num = (num << 4) | (ch - '0');
}
case 'a' .. 'f':
{
num = (num << 4) | (ch - ('a' - 10));
}
case 'A' .. 'F':
{
num = (num << 4) | (ch - ('A' - 10));
}
case ' ':
{
break;
}
default:
{
return 1;
}
}
}
setarg(paramPos, 0, num);
}
case 'c':
{
setarg(paramPos, 0, string[stringPos++]);
}
case 'f':
{
new tmp[25];
strmid(tmp, string, stringPos, stringPos+sizeof(tmp)-2);
setarg(paramPos, 0, _:floatstr(tmp));
}
case 's', 'z':
{
new
i = 0,
ch;
if (format[formatPos])
{
while ((ch = string[stringPos++]) && ch != ' ')
{
setarg(paramPos, i++, ch);
}
if (!i) return 1;
}
else
{
while ((ch = string[stringPos++]))
{
setarg(paramPos, i++, ch);
}
}
stringPos--;
setarg(paramPos, i, '\0');
}
default:
{
continue;
}
}
while (string[stringPos] && string[stringPos] != ' ')
{
stringPos++;
}
while (string[stringPos] == ' ')
{
stringPos++;
}
paramPos++;
}
while (format[formatPos] == 'z') formatPos++;
return format[formatPos];
}


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Wto 21:22, 25 Mar 2008
Gość

 





WOW skąd to wytrzasnąłeś?
PostWysłany: Śro 18:13, 26 Mar 2008
Gość

 





Sie wie ;]
PostWysłany: Śro 20:37, 26 Mar 2008
Sebastian_Hitman

 
Dołączył: 22 Mar 2008
Posty: 7
Przeczytał: 0 tematów

Ostrzeżeń: 0/5




Bardzo przydatna komenda do respanowania aut dla adminów. Twisted Evil

if(strcmp(cmd, "/respawnveh-all", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (IsPlayerAdmin(playerid) == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Brak autoryzacji!");
return 1;
}
if (IsPlayerAdmin(playerid))
{
for(new v=0; v<MAX_VEHICLES; v++)
SetVehicleToRespawn(v);
}
SendClientMessageToAll(COLOR_GRAD1, "Wszystkie pojazdy wróciły na miejsca spawnu.");
}
return 1;
}


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Śro 21:41, 26 Mar 2008
Sebastian_Hitman

 
Dołączył: 22 Mar 2008
Posty: 7
Przeczytał: 0 tematów

Ostrzeżeń: 0/5




Ta komenda została prze ze mnie zrobiona CAŁA xD Twisted Evil



if (strcmp(cmdtext, "/strona", true)==0)
{
SendClientMessage(playerid, 0xCCCCCCAA, "www.plgfsamp.fora.pl");
return 1;
}
return 0;
}


Post został pochwalony 0 razy

Ostatnio zmieniony przez Sebastian_Hitman dnia Śro 21:42, 26 Mar 2008, w całości zmieniany 2 razy
Zobacz profil autora
PostWysłany: Pią 19:59, 28 Mar 2008
Gość

 





Skrypt na odpalanie auta.

#include <a_samp>

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#define FILTERSCRIPT
#define COLOR_GREEN 0x33AA33AA
#define COLOR_PURPLE 0xC2A2DAAA
#pragma tabsize 0

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
TogglePlayerControllable(playerid, 0);
}
return 1;
}

public OnGameModeInit()
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/odpal", true)==0){
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid,0x33AA33AA,"Odpaliłeś samochód");
return 1;
}
if (strcmp(cmdtext, "/zgas", true)==0){
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid,0x33AA33AA,"Zgasiłeś samochód");
return 1;
}
if (strcmp(cmdtext, "/wyjdz", true)==0){
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
return 1;
}
return 0;
}
Forum www.plgfsamp.fora.pl Strona Główna -> Konkurs -> Konkurs
 
 
Możesz pisać nowe tematy
Możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

  
Napisz nowy tematOdpowiedz do tematu

fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB Š 2001, 2002 phpBB Group

Regulamin

Design by: Infected-FX