helpp
Lehekülg 1, lehekülgi kokku 1 • Share
- CurdyzStaar
- Liitus : 26/10/2014
Postitusi : 1070
Keegi viitsiks minu eest ära fixida? ise ei oska
- Kood:
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <engine>
#include <fakemeta>
#include <colorchat>
new VIPoigus = ADMIN_LEVEL_H
public plugin_init() {
register_plugin("HnS VIP", "0.99", "DefertLeek05)")
RegisterHam(Ham_Spawn, "player", "Spawnimisel", 1)
}
public Spawnimisel(iPlayer){
if(get_user_flags(iPlayer) & VIPoigus && is_user_alive(iPlayer))
VIPmenu(iPlayer);
if(cs_get_user_team(iPlayer) == CS_TEAM_CT) {
set_user_footsteps(iPlayer, 0);
}
public Spawnimisel(iPlayer){
if(get_user_flags(iPlayer) & VIPoigus && is_user_alive(iPlayer))
VIPmenu(iPlayer);
if(cs_get_user_team(iPlayer) == CS_TEAM_CT) {
cs_set_user_bpammo(iPlayer, CSW_SMOKEGRENADE, 1);
}
public VIPmenu(iPlayer);
new menuke = menu_create("Vali omadus:", "VIPmenuHandler");
if(cs_get_user_team(iPlayer) == CS_TEAM_CT)
{
menu_additem(menuke, "Clock (1 kuul)", "1", 0);
menu_additem(menuke, "Vaiksed Sammud", "6", 0);
menu_additem(menuke, "Frost Granaat", "5", 0);
menu_additem(menuke, "+25HP", "7", 0);
menu_setprop(menuke, MPROP_EXITNAME, "Ei soovi midagi");
menu_display(iPlayer, menuke , 0);
}
if(cs_get_user_team(iPlayer) == CS_TEAM_T)
{
menu_additem(menuke, "USP (1 kuul)", "2", 0);
menu_additem(menuke, "Frost Granaat", "5", 0);
menu_additem(menuke, "He Granaat", "4", 0);
menu_additem(menuke, "+50HP", "3", 0);
menu_setprop(menuke, MPROP_EXITNAME, "Ei soovi midagi");
menu_display(iPlayer, menuke , 0);
}
}
}
public VIPmenuHandler(iPlayer, menukas, item)
if(item == MENU_EXIT) {
menu_destroy(menukas);
return PLUGIN_HANDLED;
}
new data[6], Vananimieksole[64];
new access, callback;
menu_item_getinfo(menukas, item, access, data, 5, Vananimieksole, 63, callback);
new key = str_to_num(data);
switch(key) {
case 1: {
give_item(iPlayer, "weapon_glock18");
cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_glock18", iPlayer), 1)
ColorChat(iPlayer, RED, "^4[6GameS7] ^1Te valisite endale^4 Glock (1 kuul)^1!");
}
case 2: {
give_item(iPlayer, "weapon_usp");
cs_set_weapon_ammo(find_ent_by_owner(1, "weapon_usp", iPlayer), 1)
ColorChat(iPlayer, RED, "^4[6GameS7] ^1Te valisite endale^4 USP (1 kuul)^1!");
}
case 3: {
new praegune = get_user_health(iPlayer)
set_user_health(iPlayer, praegune + 50);
ColorChat(iPlayer, RED, "^4[6GameS7] ^1Te valisite endale^4 +50HP^1!");
}
case 4: {
set_task(10.2, "He", iPlayer);
ColorChat(iPlayer, RED, "^4[6GameS7] ^1Te valisite endale^4 HE Granaadi^1!");
}
case 5: {
set_task(10.2, "Frost", iPlayer);
ColorChat(iPlayer, RED, "^4[6GameS7] ^1Te valisite endale^4 Frost Granaadi^1!");
}
case 6: {
set_user_footsteps(iPlayer, 1);
ColorChat(iPlayer, RED, "^4[6GameS7] ^1Te valisite endale^4 Vaiksed Sammud^1!");
}
case 7: {
new praegune = get_user_health(iPlayer)
set_user_health(iPlayer, praegune + 25);
ColorChat(iPlayer, RED, "^4[6GameS7] ^1Te valisite endale^4 +25HP^1!");
}
}
menu_destroy(menukas);
return PLUGIN_HANDLED;
}
public He(iPlayer)
give_item(iPlayer, "weapon_hegrenade");
cs_set_user_bpammo(iPlayer, CSW_HEGRENADE, 2);
}
public Frost(iPlayer)
give_item iPlayer, "weapon_smokegrenade";
cs_set_user_bpammo(iPlayer, CSW_SMOKEGRENADE, 2);
}
- flammable
- Liitus : 17/08/2014
Postitusi : 1600
Complida ei saa sellepärast ,et .inc fail puudu ehk colorchatCurdyz kirjutas:Ei saa complida seda.
- CurdyzStaar
- Liitus : 26/10/2014
Postitusi : 1070
Ei nagu, ma ise tegin selle .sma üle aga ma suht 0 koodides ja seal vead sees.
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