23.11.2010, 14:38
hummm sscanf prob
pawn Код:
dcmd_lockserver(playerid,params[])
{
new string[128],pName[MAX_PLAYER_NAME],password;
if(PInfo[playerid][Level] < 5) return level(playerid,5);
if(sscanf(params,"s",password)) return SendClientMessage(playerid,ORANGE,"USAGE: /lockserver [password]");
GetPlayerName(playerid,pName,sizeof(pName));
ServerInfo[ServerPass] = password;
ServerInfo[ServerLocked] = 1;
format(string,sizeof(string),"Server: %s has locked the server",pName);
SendClientMessageToAll(YELLOW,string);
return 1;
}