Modelis ant ip.

Šiame forume vartotojai gali prašyti jiems reikiamo plugino.
Forum rules
Šiame forume galite siūlyti idėjas ar prašyti jums reikalingų pluginų. Jei kas nors pradės jį kurti, tai pasirašys Jūsų sukurtoje temoje. Niekada nepykite, jei niekas neatsako į Jūsų prašymą. Gal tai tiesiog per sudėtinga, arba reikalauja per daug darbo.
Post Reply
alfre
Gana aktyvus vartotojas
Posts: 259
Joined: 2011 May 13 14:01
Skype: alfredasxl996
Contact:

Modelis ant ip.

Post by alfre »

Kaip padaryti kad modeli duotu pagal ip?

User avatar
psychical
Viršininkas
Posts: 2094
Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:

Re: Modelis ant ip.

Post by psychical »

alfre wrote:Kaip padaryti kad modeli duotu pagal ip?

Code: Select all

RegisterHam("Ham_Spawn", "player", "spawn_player")

Code: Select all

public spawn_player(client){    new PlayerIp[32];    get_user_ip(client, PlayerIp, 31, 1);     if(equal(PlayerIp, "13.46.79.9"))        cs_set_user_model(client, modelis);    }
Nesu tikras, bet kazkas panasaus
Last edited by psychical on 2011 Dec 13 17:31, edited 2 times in total.

newb
Pluginų patvirtintojas
Posts: 1047
Joined: 2010 Sep 23 21:43
Location: Wonderland
Contact:

Re: Modelis ant ip.

Post by newb »

Code: Select all

get_user_ip(client, PlayerIp, 31)
->

Code: Select all

get_user_ip(client, PlayerIp, 32, 1)

Code: Select all

if(equal(PlayerIp, 13.46.79.9))
->

Code: Select all

if(equal(PlayerIp, "13.46.79.9"))
Kazkas tokio.

alfre
Gana aktyvus vartotojas
Posts: 259
Joined: 2011 May 13 14:01
Skype: alfredasxl996
Contact:

Re: Modelis ant ip.

Post by alfre »

neveikia
jei padarau get user flags viskas veikia..
o ant ip tai ne.

newb
Pluginų patvirtintojas
Posts: 1047
Joined: 2010 Sep 23 21:43
Location: Wonderland
Contact:

Re: Modelis ant ip.

Post by newb »

Neteisinga ip vedi ^^

alfre
Gana aktyvus vartotojas
Posts: 259
Joined: 2011 May 13 14:01
Skype: alfredasxl996
Contact:

Re: Modelis ant ip.

Post by alfre »

viska gerai vedu
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>
new const ikevis[] = { "models/player/ikevis/ikevis.mdl" }

public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
RegisterHam(Ham_Spawn, "player", "spawn_player", 1);
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/ikevis/ikevis.mdl")

return PLUGIN_CONTINUE
}
public spawn_player(client)
{
new PlayerIp[33];
get_user_ip(client, PlayerIp, 32, 1)

if(equal(PlayerIp, "77.87.8.127"))
cs_set_user_model(client, ikevis);
}

User avatar
hleV
AMX Mod X ekspertai
Posts: 875
Joined: 2011 Apr 02 11:23
Skype: hlev.lt
Location: Šiauliai

Re: Modelis ant ip.

Post by hleV »

Code: Select all

new const ikevis[] = { "models/player/ikevis/ikevis.mdl" }
->

Code: Select all

new const ikevis[] = "ikevis"
Image ← RIP best userbar
DISKUSIJA: KIETAS PLUGIN'O UŽSAKOVAS
Privačios pagalbos neteikiu!

alfre
Gana aktyvus vartotojas
Posts: 259
Joined: 2011 May 13 14:01
Skype: alfredasxl996
Contact:

Re: Modelis ant ip.

Post by alfre »

neveikia

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests