01.07.2011, 11:17
Hey guys
here is the code of a cmd.
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.
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 set my self vip.
it sends
[04:19:09] {11DF1E}Admin made ViP Silver On 01/07/2011 {F33C32}.. Congratulations ..!
please help me thanks.

