Vip time.
#2

Write it into a variable upon login, and then just show the variable in a string?

pawn Код:
CMD:viptime(playerid, input[])
{
if(!IsPlayerAdmin(playerid)) return 0;
new id;
if(sscanf(input, "u", id)) return SendClientMessage(playerid, color, "use /viptime [id]");

new str[128]; // I know this might be too big, didn't care to count.
new name[MAX_PLAYER_NAME]; GetPlayerName(id, name, MAX_PLAYER_NAME);
format(str, sizeof(str), "Player %s got %d minutes left of his VIP time.", name, VIPtime[id]);
SendClientMessage(playerid, color, str);
return 1;
}
Reply


Messages In This Thread
Vip time. - by budelis - 17.12.2011, 11:19
Re: Vip time. - by Kayaque - 17.12.2011, 14:11
Re: Vip time. - by budelis - 17.12.2011, 17:14
Re: Vip time. - by MP2 - 17.12.2011, 17:16

Forum Jump:


Users browsing this thread: 1 Guest(s)