17.12.2011, 14:11
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;
}