Äîáðûé äåíü.
Ïðîøó ïîìîùè ó âàñ.
Ñèòóàöèÿ òàêàÿ, íåñòàáèëüíî ðàáîòàåò êèê.
98% êèêàåò íîðìàëüíî, â îñòàëüíûõ ñëó÷àõ ïðîñòî ôëóäèò, ÷òî èãðîê áûë êèêíóò, à íà äåëå îí åùå íà ñåðâåðå.
Íå çíàþ êàê áûòü.
Êàê âûãëÿäèò êîä:
#define _Kick(%0,%1);\
if(!GPVI(%0, "timer_kick") ) SetTimerEx("OnPlayerKick",50, false, "is", %0,%1);\
SetPVarInt(%0, "timer_kick", 1);
êèêàåì:
_Kick(playerid, "ïðîñò");
function OnPlayerKick ( playerid, prih[] )
{
DelPVar(playerid, "timer_kick");
printf(" Êèêíóò %s[%i] (ïðè÷èíà: %s)", pName[playerid],playerid, prih);
Kick ( playerid ) ;
}
Ñïàñèáî.
Ïðîøó ïîìîùè ó âàñ.
Ñèòóàöèÿ òàêàÿ, íåñòàáèëüíî ðàáîòàåò êèê.
98% êèêàåò íîðìàëüíî, â îñòàëüíûõ ñëó÷àõ ïðîñòî ôëóäèò, ÷òî èãðîê áûë êèêíóò, à íà äåëå îí åùå íà ñåðâåðå.
Íå çíàþ êàê áûòü.
Êàê âûãëÿäèò êîä:
#define _Kick(%0,%1);\
if(!GPVI(%0, "timer_kick") ) SetTimerEx("OnPlayerKick",50, false, "is", %0,%1);\
SetPVarInt(%0, "timer_kick", 1);
êèêàåì:
_Kick(playerid, "ïðîñò");
function OnPlayerKick ( playerid, prih[] )
{
DelPVar(playerid, "timer_kick");
printf(" Êèêíóò %s[%i] (ïðè÷èíà: %s)", pName[playerid],playerid, prih);
Kick ( playerid ) ;
}
Ñïàñèáî.
Aucun commentaire:
Enregistrer un commentaire