2 problems click here please.
#1

Hey guys

here is the code of a cmd.

Код:
CMD:setvipsil(playerid, params[])
{
	if (IsPlayerAdmin(playerid))
	{
		new
		  targetid, 
		  Year,
		  Month,
		  Day;
        getdate(Year, Month, Day);
		if (!sscanf(params, "u",playerid))
		{
		  if (targetid != INVALID_PLAYER_ID)
		  {
		    new
		      message[160];
		    ViPSilver[targetid] = 1;
		    format(message, sizeof(message), "{11DF1E}Admin %s made %s ViP Silver On %02d/%02d/%d {F33C32}.. Congratulations ..!", playerid, targetid, Day, Month, Year);
		    SendClientMessageToAll(0xAA3333AA, message);
		  }
		  else SendClientMessage(playerid, 0xFF0000FF, "That player is not connected.");
		}
		else SendClientMessage(playerid, 0xFFFFFFFF, "{2E14DC}Usage: /SetVipSilv (PlayerID).");
	}
	else SendClientMessage(playerid, 0xFF0000FF, "Only admins can use this command!");
	return 1;
}
and when i type /setvipsil
and set my self vip.

it sends

[04:19:09] {11DF1E}Admin made ViP Silver On 01/07/2011 {F33C32}.. Congratulations ..!

please help me thanks.
Reply


Messages In This Thread
2 problems click here please. - by Davz*|*Criss - 01.07.2011, 11:17
Re: 2 problems click here please. - by System64 - 01.07.2011, 11:27
Re: 2 problems click here please. - by Davz*|*Criss - 01.07.2011, 11:30
Re: 2 problems click here please. - by System64 - 01.07.2011, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)