
Oto plugin"
#pragma semicolon 1 #include <sourcemod> public Plugin:myinfo = { name = "Premia RPG", author = "knopers", description = "Plugin dla Johnego", version = "1.0", url = "heavycraft.pl", } public OnPluginStart() { PrintToServer("[KNOPERS]Plugin gotowy do pracy"); HookEvent("player_death", PlayerDeath); } public Action:PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) { new attackerId = GetEventInt(event, "attacker"); new attacker = GetClientOfUserId(attackerId); new frag = GetClientFrags(attacker); new thc_rpg_credits = FindConVar("thc_rpg_credits"); new premia1 = 10; if (frag != 0) { SendConVarValue(attacker, thc_rpg_credits, "thc_rpg_credits attacker 1"); PrintToChat(attacker, "Dostales cos tam wololow"); } else { PrintToChat(attacker, "[KNOPERS]Cos nie tak <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/sad.png' class='bbc_emoticon' alt=':(' />"); } }
Ps.Czy można zrobić coś w tym stylu ?
if (xxxx)
{
}
else if (yyyy)
{
}
else
{
}
Użytkownik knopers666 edytował ten post 05.03.2013 20:10