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
#2

Can someone help me please
Reply
#3

Delete, I understand another thing
Reply
#4

Please help
Reply
#5

Please
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)