surf vipmenūū
Lehekülg 1, lehekülgi kokku 1 • Share
- cZor
- Liitus : 12/06/2014
Postitusi : 119
Tonight, ma oleks õnnelik kui sa teeksid mulle surf vipemenu..
Kus oleks:
M3+deagle
Ak+deagle
M4+deagle
Ja koguaeg granaadid..
Ja võiks väikene skin ka olla vipdel..
Kus oleks:
M3+deagle
Ak+deagle
M4+deagle
Ja koguaeg granaadid..
Ja võiks väikene skin ka olla vipdel..
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Ilma skinita:
Millist skini mõtled?
- Kood:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <fun>
new g_iMenuId
public plugin_init()
{
register_plugin("Surfi VIPMenüü", "1.0.0", "Faval");
RegisterHam(Ham_Spawn, "player", "FwdPlayerSpawnPost", 1);
g_iMenuId = menu_create("Surfi VIPMenüü", "HandleMenu");
menu_additem(g_iMenuId, "M3 + Deagle", "1");
menu_additem(g_iMenuId, "AK47 + Deagle", "2");
menu_additem(g_iMenuId, "M4A1 + Deagle", "3");
}
public FwdPlayerSpawnPost(id)
{
if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
menu_display(id, g_iMenuId);
}
public HandleMenu(id, iMenuId, iItem)
{
if(iItem == MENU_EXIT || !is_user_alive(id))
return PLUGIN_HANDLED;
switch(iItem)
{
case 0:
{
give_item(id, "weapon_m3");
cs_set_user_bpammo(id, CSW_M3, 32);
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}
case 1:
{
give_item(id, "weapon_ak47");
cs_set_user_bpammo(id, CSW_AK47, 90);
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}
case 2:
{
give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_M4A1, 90);
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}
}
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_smokegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM);
return PLUGIN_HANDLED;
}
Millist skini mõtled?
Viimati muutis seda Tonight (31.07.14 23:47). Kokku muudetud 1 kord (Muutmise põhjus : Typo koodis)
- cZor
- Liitus : 12/06/2014
Postitusi : 119
No vip skin
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Anna skin?cZor kirjutas:No vip skin
- cZor
- Liitus : 12/06/2014
Postitusi : 119
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Nonii, et kõigil oleks selline skin, siis pead ka modeli failid oma serverisse uploadima.
Pööra tähelepanu sellele, kui midagi muuta soovid:
Modelite download (õigete nimedega): https://www.dropbox.com/s/pdmmwbum80imki8/models.zip
Plugin on testimata, seega anna vigadest teada (kui peaks olema).
- Kood:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#include <fun>
new g_iMenuId
public plugin_init()
{
register_plugin("Surfi VIPMenüü", "1.0.0", "Faval");
register_event("ResetHUD", "resetModel", "b")
RegisterHam(Ham_Spawn, "player", "FwdPlayerSpawnPost", 1);
g_iMenuId = menu_create("Surfi VIPMenüü", "HandleMenu");
menu_additem(g_iMenuId, "M3 + Deagle", "1");
menu_additem(g_iMenuId, "AK47 + Deagle", "2");
menu_additem(g_iMenuId, "M4A1 + Deagle", "3");
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/bond_ct/bond_ct.mdl")
precache_model("models/player/bond_t/bond_t.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_LEVEL_H) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "bond_t")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "bond_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
public FwdPlayerSpawnPost(id)
{
if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H)
menu_display(id, g_iMenuId);
}
public HandleMenu(id, iMenuId, iItem)
{
if(iItem == MENU_EXIT || !is_user_alive(id))
return PLUGIN_HANDLED;
switch(iItem)
{
case 0:
{
give_item(id, "weapon_m3");
cs_set_user_bpammo(id, CSW_M3, 32);
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}
case 1:
{
give_item(id, "weapon_ak47");
cs_set_user_bpammo(id, CSW_AK47, 90);
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}
case 2:
{
give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_M4A1, 90);
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
}
}
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_smokegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM);
return PLUGIN_HANDLED;
}
Pööra tähelepanu sellele, kui midagi muuta soovid:
- Kood:
precache_model("models/player/bond_ct/bond_ct.mdl")
precache_model("models/player/bond_t/bond_t.mdl")
Modelite download (õigete nimedega): https://www.dropbox.com/s/pdmmwbum80imki8/models.zip
Plugin on testimata, seega anna vigadest teada (kui peaks olema).
- cZor
- Liitus : 12/06/2014
Postitusi : 119
Mod_NumForNAme: models/player/bond_ct/bond_cT.mdl not found, mingi fental error
- Tonight
- Liitus : 19/02/2012
Postitusi : 18000
Modelid serverisse paigaldamata?cZor kirjutas: Mod_NumForNAme: models/player/bond_ct/bond_cT.mdl not found, mingi fental error
Soovid vestluses osaleda?
Selleks logi sisse või tee endale kasutaja.
Lehekülg 1, lehekülgi kokku 1
Permissions in this forum:
Sa ei saa vastata siinsetele teemadele