User
Pass
2FA
 
 

cerere creare plugin simplu
Go to page 1, 2, 3  Next    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message2987
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 15-08-2015, 01:14:30 | Translate post to: ... (Click for more languages)

As dori daca puteti sa creeati un plugin la care Adminul cu flagul abcdefghijklmnopqrstu sa aiba modelul doar la human pe care o sa il setez eu in sma



- raman recunoscator si ii voi face reclama zilnica pe server pnetru castigarea clientilor etc..

0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 15-08-2015, 02:16:47 | Translate post to: ... (Click for more languages)

Try.
Code:

#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>
#include <fakemeta>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "D3luxe"

#define SKIN_FLAG read_flags("abcdefghijklmnopqrstu")
new const SkinHuman[] = "human_skin"

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR) ;
   RegisterHam(Ham_Spawn,"player","spawn_id",1);
}

public plugin_precache()
{
   static Buffer[128];
   formatex(Buffer, sizeof(Buffer), "models/player/%s/%s.mdl",SkinHuman,SkinHuman);
   engfunc(EngFunc_PrecacheModel, Buffer);
}

public spawn_id(id)
{
   if(!zp_get_user_zombie(id) || !zp_get_user_survivor(id))
   {
      if(get_user_flags(id) & SKIN_FLAG)
         set_user_info(id,"model",SkinHuman);       
   }
}



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 15-08-2015, 10:41:10 | Translate post to: ... (Click for more languages)

nu merge nici nu sa descarcat modelul ma gandesc sa nu cumva sa opreasca rularea pluginului zp-plague.ini unde e setat model pentru admini Thinking parerea mea
0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 15-08-2015, 18:29:48 | Translate post to: ... (Click for more languages)

Vezi asa ->
Code:

#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>
#include <fakemeta>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "D3luxe"

#define SKIN_FLAG read_flags("abcdefghijklmnopqrstu")
new const SkinHuman[] = "human_skin"

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR) ;
   RegisterHam(Ham_Spawn,"player","spawn_id",1);
}

public plugin_precache()
{
   static Buffer[128];
   formatex(Buffer, sizeof(Buffer), "models/player/%s/%s.mdl",SkinHuman,SkinHuman);
   engfunc(EngFunc_PrecacheModel, Buffer);
}

public spawn_id(id)
{
   if(!zp_get_user_zombie(id) || !zp_get_user_survivor(id))
   {
      if(get_user_flags(id) & SKIN_FLAG){
         static Buffer[128];
         formatex(Buffer, sizeof(Buffer), "%s",SkinHuman);
         set_user_info(id,"model",Buffer); 
      }
   }
}

PS:Vezi sa fie fix flagurile alea si sa ai skinul pus unde trebuie.



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 15-08-2015, 19:05:14 | Translate post to: ... (Click for more languages)

se descarca modelul flagul este exact ca cel din sma dar din pacatea ruleaza doar modelul care este fixat in zombie.plague.ini exista o rezolvare maiestre

ma gandesc sa nu cumva sa trebuiasca pusa vreo linie in zm-plague.ini - -

0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 15-08-2015, 19:12:01 | Translate post to: ... (Click for more languages)

Rezolvarea ar fii sa pun asta direct in pluginul de baza ... Deci posteaza pluginul de baza.


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 15-08-2015, 19:20:44 | Translate post to: ... (Click for more languages)

http://www.girlshare.ro/35021884.7

si uitate te rog frumos daca am pus bn alea ca sa nu mai respawneze playeri atunci cand omori un zombi il respawneaza in human

0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 16-08-2015, 13:37:24 | Translate post to: ... (Click for more languages)

Ia vezi si asa.
Spoiler:



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 16-08-2015, 23:35:01 | Translate post to: ... (Click for more languages)

tot nu merge lafel se descarca modelul dar tot modelul din zp.plague ini il ruleaza
0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 17-08-2015, 00:28:55 | Translate post to: ... (Click for more languages)

Te poti uita in consola ?Poate e vreo eroare....


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 17-08-2015, 10:54:49 | Translate post to: ... (Click for more languages)

da yo nu pot s inteleg se descarca modelul asta inseamna ca ruleaza pluginul corect dar nu merge este acelasi model care lam setat din Zp.Plague.ini nu pot inelege
0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 17-08-2015, 11:01:24 | Translate post to: ... (Click for more languages)

Incearca si asa daca nu merge modific direct in sursa...
Spoiler:



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 17-08-2015, 13:28:52 | Translate post to: ... (Click for more languages)

Quote:
[14:20:02] [WARNING] > Reading some data from configuration file failed!
> Please check [ERROR] messages above for solving this problem!



imi pica intruna serveru de la ultimu plugin care mi lai dat asta chiar ca face mai rau

tot lafel se descarca modelul doar ca de data asta apare eroarea asta isi da serveru restart si dupa daca schimb mapa apare eroarea asta eu zic ca trb bagat in pluginu de baza ca nu mermite pluginu de baza sa ruleze alt model decat cel din zp.Plague ini

0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 18-08-2015, 16:48:40 | Translate post to: ... (Click for more languages)

???
0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 18-08-2015, 17:15:21 | Translate post to: ... (Click for more languages)

M-am uitat in sma si am vazut ca poti pune model la admini cu un anumit flag ,te sfatuiesc sa pui flagurile pe care le vrei tu in loc de flagurile adminilor deoarece incarci svr cu multe modele inutile....


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore




 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  
Go to page 1, 2, 3  Next    


The time now is 20-05-2025, 19:48:19
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password