27.12.2011, 20:23
You meant like so?
pawn Код:
CMD:setupdate(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return 0;
new iVersion[64];
if(sscanf(params,"s[64]",iVersion)) return SendHelpMessage(playerid,"/setupdate <text>","It will set the server name.");
new iUpdate[300];
format(iUpdate,sizeof(iUpdate),"hostname [0.3d]L.A. Noire RPG Cops and Robbers %s",iVersion);
SendRconCommand(iUpdate);
return 1;
}