/setadmin command help
#1

Hello guys, i am newbie at scripting so i wonder to create my own gamemode i already learned how to create login/register system and save player stats from here https://sampforum.blast.hk/showthread.php?tid=167937

I already create my own /setvip from my own mind.
Код:
CMD:setvip(playerid, params[])
{
    if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid, -1, "{FF0000}[ERROR]:{FAF5F5}You are not{FF0000} Administrator {FAF5F5} to use this command");
    if (sscanf(params, "u", playerid))
	{
    return SendClientMessage(playerid, 0xFF0000AA, "{FF0000}[SYSTEM USAGE]:{FAF5F5}/setvip [[playerid]");
	}
	new id, string[126];
	format (string, sizeof (string),"{FF0000}[Administrator]:{FAF5F5}%s has promote you to vip player!",GetPlayerNameEx(playerid));
	SendClientMessage(id,-1,string);
	format (string, sizeof (string),"{FF0000}[Administrator command]:{FAF5F5}you have promote %s to vip player!",GetPlayerNameEx(id));
	SendClientMessage(playerid,-1,string);
    PlayerInfo[playerid][pVip] = 1;
	return 1;
}
Код:
enum pInfo
{
    pAdminLevel,
    pCash,
    pScore,
    pVip
}
I already searched on ****** put i just wanna help on levels with the same type i create /setvip system to be saved in player.ini file if you would like to help me will be great, sorry for my bad english.
Reply


Messages In This Thread
/setadmin command help - by SilentSoul - 28.08.2013, 18:00
Re: /setadmin command help - by ProjectMan - 28.08.2013, 18:12
Re: /setadmin command help - by nor15 - 28.08.2013, 18:13
Re: /setadmin command help - by SilentSoul - 28.08.2013, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)