whats wrong with this?
#1

Код:
        if(IsPlayerAdmin(playerid))
 		{
			new cmds[128];
			new giveplayerid;
			new tmp[256];
			giveplayerid = strval(tmp);
		 	if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_SYSTEM,"Invalid id");
			if(IsPlayerNPC(giveplayerid)) return SendClientMessage(playerid,COLOR_SYSTEM,"Not on npc");
 			new oname[24];
    		new pname[24];
    		GetPlayerName(playerid,oname, 24);
			GetPlayerName(giveplayerid, pname, 24);
			format(cmds,sizeof cmds,"Player %s has been kicked by Rcon Administrator %s",pname,oname);
   			SystemMessageToAll(cmds);
     		format(cmds,sizeof cmds,"kick %s",inputtext);
   			SendRconCommand(cmds);
   		}
its not cmd. its dialog response but it doent show the pname(giveplayerid) right. whats wrong?
Reply


Messages In This Thread
whats wrong with this? - by billiout - 15.08.2010, 15:18
Re: whats wrong with this? - by armyoftwo - 15.08.2010, 15:22
Re: whats wrong with this? - by billiout - 15.08.2010, 15:26
Re: whats wrong with this? - by billiout - 15.08.2010, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)