Next gm
#4

not hard really

pawn Код:
dcmd_next(playerid, params[])
{
new gm;
new string[256]; new adminname[MAX_PLAYER_NAME];
GetPlayerName(playerid, adminname, sizeof(adminname));
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "Not admin so cant use this command bla bla bla");
if(sscanf(params, "d", gm)) return SendClientMessage(playerid, COLOR_RED, "Usage bla bla bla");

format(string, sizeof(string), "Server: %s (id: %d) has set next mission to Police Village.", adminname, playerid);
SendClientMessageToAll(0xFFA500FF, string);
nextmission = 1;
return 1;
}
SHOULD Work, Untested,
ALSO You need to have the DCMD thing in OnPlayerCommandText,
I forgot about that earlier,
Reply


Messages In This Thread
Next gm - by Ironboy500 - 02.04.2010, 19:20
Re: Next gm - by Torran - 02.04.2010, 19:25
Re: Next gm - by Ironboy500 - 02.04.2010, 19:31
Re: Next gm - by Torran - 02.04.2010, 19:42
Re: Next gm - by Ironboy500 - 02.04.2010, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)