hellllppppp
#1

dcmd_freeze(playerid,params[])
{
if(Player[playerid][admin] < 1){
return SendClientMessage (playerid,COLOR_RED,"You must be a Mod/Admin to freeze Players");
}
new pID;
if(sscanf(params,"u",pID)){
return SendClientMessage(playerid,COLOR_RED,"USAGE: /freeze [playerid] [reason]");
}
if(!IsPlayerConnected(pID)){
return SendClientMessage(playerid,COLOR_RED,"Nobody is connected with this ID!");
}
if(Player[playerid][admin] < Player[pID][admin]){
return SendClientMessage(playerid,COLOR_RED,"You can`t freeze a high ranked admin");
}
new string[128],adminname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,adminname,sizeof(adminname) );
GetPlayerName(pID,name,sizeof(name));
format(string,sizeof(string),"**(Admin Freeze)** %s(%d) %s.",name,playerid);
SendClientMessageToAll(playerid,COLOR_RED,string);
TogglePlayerControllable(pID, 0);
return 1;
}


i want make akill like this format please help me guys and wanr and mute and unmute commands help me
Reply


Messages In This Thread
hellllppppp - by [MKD]Max - 01.10.2010, 21:09
Re: hellllppppp - by Ironboy500[TW] - 01.10.2010, 21:10
Re: hellllppppp - by [Lsrcr]Rafa - 01.10.2010, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)