09.09.2009, 02:26
pawn Код:
dcmd_points(playerid, params[])
{
#pragma unused params
if(logged[playerid] == 1)
{
new file[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), "\\Users\\%s.ini", pname);
dini_IntSet(file, "serverpoints", serverpoints[playerid]);
new str[128]; format(str, sizeof(str), "You currently have %d Server Points", serverpoints[playerid]);
SendClientMessage(playerid, COLOR_YELLOW, str);
SendClientMessage(playerid, red, "Type /spendpoints to find out what you can use you're points on!");
}
else
{
SendClientMessage(playerid, red, "Error: You need to be logged in to see you're server points!.");
}
return 1;
}