/event CMD Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /event CMD Problem (
/showthread.php?tid=544013)
/event CMD Problem -
PaPuna - 30.10.2014
Hi all, I have Double-O-Seven's SADM, and I have problem with /event cmd. at event only winning cookies players, admins can't I don't know why. someone please help me. I want to all win events!
PHP код:
else
{
switch (CurrentEvent)
{
case EVENT_DM5, EVENT_DM3, EVENT_DM8, EVENT_XXXSPRINT:
{
new winner = INVALID_PLAYER_ID;
ForEachPlayer(i)
if (!IsPlayerAdminLevel(i, 1) && PlayerInfo[pOnlineHours][i] >= OnlineHoursForEvent && EventStats[i] > 0 && (winner == INVALID_PLAYER_ID || (EventStats[i] > EventStats[winner])))
winner = i;
if (IsValidPlayer(winner))
PlayerWinEvent(winner);
else
SendLanguageMessageToAll(COLOR_EVENT, "<$> -Eventinfo-<#> Niemand hat den Event gewonnen! (/Event)", "<$> -Eventinfo-<#> Noone has won the event! (/Event)");
}
}