0 Members and 1 Guest are viewing this topic.
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.
click here -> Seby's Tricks & Discoveries Showroom
hey problem !What is the pass of admin and what is rcon and What is that Commadns Strike how to do
Thanx but how to kick withreason
WHere is that script tell me
is this admin login like VC-MP
} else if (strcmp(cmd, "kick", true) == 0) { new reason[256], plr, szMsg[256]; tmp = strtok(cmdtext, idx), reason = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp); if(IsPlayerAdmin(playerid)) else if (!strlen(reason)) SendClientMessage(playerid,0xFFFF00AA,"USAGE: /c kick [Nick/ID] [Reason]"); else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,0xFFFF00AA,"Error: Unknown player"); else { format(szMsg,sizeof(szMsg),"Admin: %s kicked player:[ %s ] Reason:[ %s ]",gPlayers[playerid],gPlayers[plr],cmdtext[strlen(tmp)+6]); SendClientMessageToAll(0xFFFF00AA,szMsg); Kick(plr); }
public FindPlayerIDFromString(string[]){// for determining player id from a string -bakasan new player = INACTIVE_PLAYER_ID; new p = 0; while (p < MAX_PLAYERS) { if (strfind(gPlayers[p],string,true) != -1) { player=p;break; } p++; } if (player == INACTIVE_PLAYER_ID) {// string didnt match so check if it can be an id if ((strlen(string) > 2) || (isnumeric(string) == 0)) { return INACTIVE_PLAYER_ID; } player = strval(string);// string is numeric and not more than 2 digits } if (!IsPlayerConnected(player)) { return INACTIVE_PLAYER_ID; } return player;// valid id found} return 1; }