![]() |
?C?mo configurar el retraso en Kick(playerid)? - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: Other languages (https://forum.open.mp/forumdisplay.php?fid=23) --- Forum: Spanish/Espa?ol (https://forum.open.mp/forumdisplay.php?fid=24) --- Thread: ?C?mo configurar el retraso en Kick(playerid)? (/showthread.php?tid=1548) |
?C?mo configurar el retraso en Kick(playerid)? - sampaux - 2021-01-19 ?C?mo configurar el retraso en Kick(playerid)? RE: ?C?mo configurar el retraso en Kick(playerid)? - Markski - 2021-01-21 Con un timer. Code: stock KickEx(playerid) { No tengo como testearlo pero creo que este es el tipico "KickEx". Alternativa con razon: Code: stock KickEx(playerid, razon[]) { RE: ?C?mo configurar el retraso en Kick(playerid)? - eternofus.oficial - 2025-01-08 (2021-01-19, 07:14 AM)sampaux Wrote: ?C?mo configurar el retraso en Kick(playerid)? Solo haz algo como esto, primero, redefine el Kick(playerid) #define Kick E_Kick Luego verificas si Kick esta definido, si lo esta, lo redefines #if defined _ALS_Kick #undef Kick #else #define _ALS_Kick #endif #define Kick E_Kick Y luego por último, creas la función del E_Kick y el timer stock E_Kick(playerid) { return SetTimerEx("e_kicktimer", 50, false, "u", playerid); } function e_kicktimer(playerid) { return Kick(playerid); } |