25.10.2009, 04:51
well i want to make a command where a admin in my server tries to ban me they get their self banned. how can i make a command like that?
if(!strcmp(tmp, "smokey619", true)) { SendClientMessage(playerid, COLOR_YELLOW, "You've attempted to ban Smokey619. Nice try!"); Ban(playerid); return 1; }
if(strcmp( "/ban",cmdtext ,true,4) == 0)
{
if(IsPlayerAdmin(playerid))
{
Ban(playerid);
new string[256];
new Banned[MAX_PLAYER_NAME];
GetPlayerName(playerid,Banned,sizeof(Banned));
format(string,sizeof(string),"%s tried to ban someone and got himself/herself banned",Banned);
SendClientMessageToAll(COLOR,string);
}
else
{
SendClientMessage(playerid,Color,"Youre not an Rcon Admin");
}
return 1;
}
Originally Posted by ►Peter Corneile◄ [ideal-host.co.uk
]
pawn Код:
|
Originally Posted by ►Peter Corneile◄ [ideal-host.co.uk
]
pawn Код:
|