21.06.2013, 21:36
(
Последний раз редактировалось MrWakeUp; 21.06.2013 в 22:12.
)
i wonder if i'm wrong in the script or if the probleme come from my samp if i'm wrong correct me please
here is the pawn code ofcorse with
#include <zcmd>
#include <sscanf2>
// i will make a kick command for test ( i already did that and it did not work )
here is the pawn code ofcorse with
#include <zcmd>
#include <sscanf2>
// i will make a kick command for test ( i already did that and it did not work )
Код:
CMD:kick(playerid, params[]) { new kickedid, kickerid, kickedn[MAX_PLAYER_NAME+128], kickern[MAX_PLAYER_NAME+128], reason[128], kickmessage[128]; GetPlayerName(playerid, kickern, sizeof(kickern)); GetPlayerName(playerid, kickedn, sizeof(kickedn)); if (sscanf(params, "us", kickedid, reason)) return SendClientMessage(playerid, 0xFF0000FF, "KICK: /kick (id) (reason)"); format(kickmessage, sizeof(kickmessage), "le joueur %s (ID:%d) vient d'кtre kickй par %s (ID:%d) || raison: %s", kickedn, kickedid, kickern, kickerid,reason); SendClientMessageToAll(0xFF3900FF, kickmessage); Kick(kickedid); return 1; }