26.02.2012, 20:23
pawn Код:
CMD:win(playerid, params[])
{
if(!IsPlayerLuxAdmin(playerid))
{
return SendClientMessage(playerid, -1, "SERVER: Unknown Command.");
}
else
{
new id, name[MAX_PLAYER_NAME],str[128],string[32];
if(sscanf(params, "us[32]", id, string)) return SendClientMessage(playerid, 0xCC0000AA, "USAGE: /win <id> <prize>");
GetPlayerName(id, name, sizeof(name));
format(str,sizeof(str), "~R~%s ~w~has won the event~n~and %s",name,string);
GameTextForAll(str,6000,3);
}
return 1;
}
pawn Код:
f(sscanf(params, "us[32]", id, string)) return SendClientMessage(playerid, 0xCC0000AA, "USAGE: /win <id>