GivePlayerWeapon with dcmd
#10

The codes i use :

Код:
	CMD:me(playerid, params[])
	{
		new string[128],msg[128],pname[MAX_PLAYER_NAME];
		GetPlayerName(playerid,pname,sizeof(pname));
		if(sscanf(params,"sz",msg)) return SendClientMessage(playerid,ORANGE, "USAGE: /me <text>");
		format(string,sizeof(string),"*%s %s",pname,msg);
		SendClientMessageToAll(GREY,string);
		return 1;
	}
	
	CMD:kick(playerid, params[])
	{
	new string[128];
	new id, reason, name[MAX_PLAYER_NAME];
 	if(sscanf(params, "us[100]",id, reason)) return SendClientMessage(playerid, -1, "USAGE: /kick <playerid/partofname> <reason>");
 	if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You're not an admin.");
	Kick(id);
	GetPlayerName(id, name, sizeof(name));
	format(string, sizeof(string), "%s has been kicked of the server. Reason: %s", name, reason);
	SendClientMessageToAll(-1, string);
	return 1;
}
Both return

SERVER: Unknown command
Reply


Messages In This Thread
GivePlayerWeapon with dcmd - by luckie12 - 28.03.2016, 13:57
Re: GivePlayerWeapon with dcmd - by Luis- - 28.03.2016, 14:03
Re: GivePlayerWeapon with dcmd - by luckie12 - 28.03.2016, 14:04
Re: GivePlayerWeapon with dcmd - by introzen - 28.03.2016, 14:07
Re: GivePlayerWeapon with dcmd - by luckie12 - 28.03.2016, 14:10
Re: GivePlayerWeapon with dcmd - by introzen - 28.03.2016, 14:29
Re: GivePlayerWeapon with dcmd - by luckie12 - 28.03.2016, 14:34
Re: GivePlayerWeapon with dcmd - by luckie12 - 28.03.2016, 14:40
Re: GivePlayerWeapon with dcmd - by introzen - 28.03.2016, 14:41
Re: GivePlayerWeapon with dcmd - by luckie12 - 28.03.2016, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)