Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.


Üzenetek - Flash

Oldalak: 1 ... 194 195 [196] 197 198 ... 318
2926
SA-MP: Szerverfejlesztés / DeathMatch rendszer \\ Kezdõknek-Haladóknak \\
« Dátum: 2013. június 20. - 15:24:26 »
Csumi all!
Készítettem (unalmamban) egy DM rendszert blabla..
Tartalma:
 - 2 parancs: /dms /exitdm
 - a /dms parancsnál kilistáz 2 DM-et ami azt is megmutatja, hogy éppen hányan tartózkodnak abban a DM-ben!
 - DM-ben csakis az /exitdm parancsot lehet beírni, mivel a többit tíltja.
 - Halál után ha DM-ben haltál meg akkor random helyre visszatesz a DM zónában, a megfelelõ fegyverrel.
Elkészítési idõ: 20 perc
Készítõ: Én
Sorok száma: 128
A script:.
 
// DM rendszer script By: Flash ( < sampforum.hu > )
#include a_samp
#include zcmd
#define DIALOG_DMS 1234
new string[512];
new dmplayers[2];
new vmi[MAX_PLAYERS];
public OnPlayerConnect(playerid) { SetPVarInt(playerid, \"InDM\", 0); return 1; }
public OnPlayerDisconnect(playerid, reason) { if(GetPVarInt(playerid, \"InDM\")) cmd_exitdm(playerid); return 1; }
public OnPlayerSpawn(playerid) {
if(GetPVarInt(playerid, \"InDM\")) {
    switch(vmi[playerid]) {
   case 1: { // Minigun DeathMatch
      switch(random(3)) {
         case 0: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
         case 1: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
         case 2: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
      }
      GivePlayerWeapon(playerid, 38, 99999);
   }
   case 2: { // Sawnoff DeathMatch
      switch(random(3)) {
         case 0: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
         case 1: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
         case 2: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
      }
      GivePlayerWeapon(playerid, 26, 99999);
   }
    }
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
switch(dialogid) {
case DIALOG_DMS: {
   if(!response) return 1;
   if(listitem == 0) {
      dmplayers[0] ++;
      vmi[playerid] = 1;
      switch(random(3)) {
         case 0: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
         case 1: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
         case 2: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
      }
      string[0] = EOS;
      format(string, sizeof(string), \"%s csatlakozott a Minigun DeathMatch-hoz! Bent vannak: %i\", Name(playerid), dmplayers[0]);
      SendClientMessageToAll(-1, string);
   }
   if(listitem == 1) {
      dmplayers[1] ++;
      vmi[playerid] = 2;
      switch(random(3)) {
         case 0: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
         case 1: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
         case 2: SetPlayerPos(playerid, 0.0, 0.0, 0.0); // írd át
      }
      string[0] = EOS;
      format(string, sizeof(string), \"%s csatlakozott a Sawnoff DeathMatch-hoz! Bent vannak: %i\", Name(playerid), dmplayers[1]);
      SendClientMessageToAll(-1, string);
   }
   SetPVarInt(playerid, \"InDM\", 1);
}
}
return 1;
}
CMD:dms(playerid) {
if(GetPVarInt(playerid, \"InDM\")) return SendClientMessage(playerid, 0xff0000ff, \"Hiba! Te már DM zónában vagy!\");
new line[512];
line[0] = EOS;
format(string, sizeof(string), \"Minigun DeathMatch - Bent tartózkodnak: %i játékos\\n\", dmplayers[0]);
strcat(line, string);
format(string, sizeof(string), \"Sawnoff DeathMatch - Bent tartózkodnak: %i játékos\\n\", dmplayers[1]);
strcat(line, string);
ShowPlayerDialog(playerid, DIALOG_DMS, 2, \"DeatchMatch zónák:\", line, \"Csatlakoz!\", \"Bezár\");
return 1;
}
CMD:exitdm(playerid) {
new dmname[64];
switch(vmi[playerid]) {
case 1: {
   dmplayers[0] --;
   dmname = \"Minigun DeathMatch\";
}
case 2: {
            dmplayers[1] --;
   dmname = \"Sawnoff DeathMatch\";
}
}
vmi[playerid] = 0;
SetPVarInt(playerid, \"InDM\", 0);
SpawnPlayer(playerid);
format(string, sizeof(string), \"%s kilépett a %s zónából!\", Name(playerid), dmname);
SendClientMessageToAll(-1, string);
return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[]) {
if( strfind(cmdtext, \"/exitdm\") != 0) {
       if(GetPVarInt(playerid, \"InDM\") && strcmp(cmdtext, \"/exitdm\") && vmi[playerid] > 0) {
   SendClientMessage(playerid, 0xff9999ff, \"Hiba! DM-ben nem használhatsz parancsokat! Kilépéshez: /exitdm\");
   return 0;
}
}
return 1;
}
Name(playerid) {
new n[24];
GetPlayerName(playerid, n, 24);
return n;
}

2927
SA-MP: Szerverfejlesztés / Egyszerü Reklám Script
« Dátum: 2013. június 20. - 15:01:17 »
De ez nem is random ba adja..

2928
SA-MP: Szerverfejlesztés / Egyszerü GOD Mode
« Dátum: 2013. június 20. - 11:49:10 »
Jaj de jó, egy újabb Gúd mód \"script\".. Még valaki esetleg..?!

2929
Segítségkérés / Mi baja a scriptnek?:S
« Dátum: 2013. június 19. - 17:00:56 »
        }
        }
   }

 
ezeket töröld..
szóval:
 
public OnGameModeInit ( )
{
    new vehicle_id, Text3D:vehicle3Dtext;
    vehicle3Dtext = Create3DTextLabel(\"szöveg\", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
    vehicle_id = CreateVehicle(510, 0.0. 0.0, 15.0, 5, 0, 120);
   return 1;
}

2930
Szkript kérések / Teleport
« Dátum: 2013. június 19. - 15:47:30 »
if(strcmp(cmdtext, \"/ach\", true) == 0)
{

 
alá:
 
if(admin.. < 1)) return SendClientMessage(playerid, -1, \"Hiba! Ezt a parancsot csak adminok használhatnak!\");

2931
Archívum / Call of Duty 5 @ crux-host.eu
« Dátum: 2013. június 19. - 15:36:21 »
Nekem nagyon tetszik a szerver! :)
Tippek:
- A jobb alsó GameText szerû textdrawot igazítsátok úgy, hogy ne lógjon ki.
- A sebessémgérõ felesleges, vagy mérjen gyorsabban.
Sok sikert!

2932
Játékélmény: 0%
Ezen a szerveren majdnem minden nem saját, max a textdrawok..

2933
Archívum / MTA mozgó kapu
« Dátum: 2013. június 19. - 13:40:17 »

2934
Verseny szervezése / Pályakészítõ Liga vol. 5
« Dátum: 2013. június 19. - 13:35:32 »
Szerintem nem jó ötlet, fõleg ha RP-s feladatok lesznek..  :thumbsdown:

2936
Segítségkérés / Hang lejátszása a szervermappából
« Dátum: 2013. június 19. - 12:34:57 »
Van valami Audio plugin vagy mi..

2937
Segítségkérés / Több munka
« Dátum: 2013. június 19. - 12:28:54 »
new cp2[MAX_PLAYERS];

 

            if(cp[playerid] == 7)
            {

 
>
 
             if(cp2[playerid] == 7)
            {

2938
Adás-Vétel / Eladó - Alcatel OT-918D
« Dátum: 2013. június 19. - 12:26:15 »
Énis kérek árat.

2939
Segítségkérés / Score
« Dátum: 2013. június 19. - 12:14:16 »
helyesbítek:
 
CMD:score( playerid ) return SetPlayerScore( playerid, GetPlayerScore( playerid ) + 20);

2940
Archívum / Map converter hiba
« Dátum: 2013. június 18. - 10:58:27 »
Lekonvertálja az csak kurvasok idõ kell hozzá.
Vagy csináld azt, hogy kettészeded a mapot és õgy vagy 4 be..

Oldalak: 1 ... 194 195 [196] 197 198 ... 318
SimplePortal 2.3.7 © 2008-2025, SimplePortal