23.12.2011, 18:35
Ever since i made this cage i got it
pawn Код:
dcmd_cage(playerid,params[])
{
if(AccInfo[playerid][Level] < 2)
return ErrorMessages(playerid, 5);
new id, reason[64],string[128];
if(sscanf(params,"is",id,reason)) return SendClientMessage(playerid, COLOR_GREEN,"USAGE: /cage [PlayerId] [reason]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_GREEN,"The Player is not connected!");
new pName[MAX_PLAYER_NAME];
new vName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,32);
GetPlayerName(id,vName,32);
CagePlayer(id);
format(string,sizeof string,"** ADMIN CAGE: %s has been caged - %s",vName,reason);
SendClientMessageToAll(adminpink,string);
return 1;
}