VIP save
#1

Hi

Can someone make that it will save if player is VIP or not into a %s.ini folder


Code:


PHP код:
#include <a_samp>
#define color 0x33AA33AA
#include <zcmd>
enum PlayerInfo
{
IsPlayerVIP
};
new 
pInfo[MAX_PLAYERS][PlayerInfo];
CMD:setvip(playeridparams[])
{
if(
pInfo[playerid][IsPlayerVIP] == 0)
{
new 
ID strval(params);
new 
PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playeridPlayerNamesizeof(PlayerName));
new 
string[128];
if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,color,"You are not an RCON admin!");
if (!
strlen(params)) return SendClientMessage(playerid,  -1"{FF0000}Usage: /setvip [PlayerID]");
else if(!
IsPlayerConnected(ID)) return SendClientMessage(playerid,  -1"{FF0000}That player isn't connected.");
else
{
format(stringsizeof(string), "Staff member %s has set %s to a VIP."PlayerName,ID);
SendClientMessageToAll(-1string);
pInfo[playerid][IsPlayerVIP] = 1;
}
}
else
{
pInfo[playerid][IsPlayerVIP] = 0;
}
return 
1;

Reply


Messages In This Thread
VIP save - by kalanerik99 - 02.05.2013, 19:35
Re: VIP save - by kalanerik99 - 03.05.2013, 06:01
Respuesta: VIP save - by JustBored - 03.05.2013, 06:10
Re: VIP save - by kalanerik99 - 03.05.2013, 06:34
Re: VIP save - by kalanerik99 - 03.05.2013, 08:30

Forum Jump:


Users browsing this thread: 1 Guest(s)