Easy help for VIP
#1

hey all, i'm creating VIP sistem and i need only one thing

i have this

new VIP[MAX_PLAYERS];
if(VIP[playerid] == 1)



at the moment i'm using this command:

Код:
	if (strcmp(cmd, "/duotivip", true) == 0 || strcmp(cmd, "/vipon", true) == 0)
	{
	if(VIP[playerid] == 1)
	{
	SendClientMessage(playerid, COLOR_SYSTEM, "You're already VIP!");
	}
	else
	{
	VIP[playerid] = 1;
	SendClientMessage(playerid, COLOR_SYSTEM, "Now you have VIP!");
	}
	return 1;
	}

	if (strcmp(cmd, "/atimtivip", true) == 0 || strcmp(cmd, "/vipoff", true) == 0)
	{
	if(VIP[playerid] == 0)
	{
	SendClientMessage(playerid, COLOR_SYSTEM, "You're not VIP!");
	}
	else
	{
	VIP[playerid] = 0;
	SendClientMessage(playerid, COLOR_SYSTEM, "Your VIP gone!");
	}
	return 1;
	}
but i need something like: /vipon [id] /vipoff [id]

how i can make what i could make other VIP's with command? please help


PROBLEM:

Need /give vip [id] function ar something like this
Reply


Messages In This Thread
Easy help for VIP - by Dainyzxz - 07.01.2011, 01:23
Re: Easy help for VIP - by John_F - 07.01.2011, 01:32
Re: Easy help for VIP - by Dainyzxz - 07.01.2011, 01:42
Re: Easy help for VIP - by John_F - 07.01.2011, 01:57
Re: Easy help for VIP - by Dainyzxz - 07.01.2011, 02:10
Re: Easy help for VIP - by admantis - 07.01.2011, 02:15
Re: Easy help for VIP - by Haydz - 07.01.2011, 02:22
Re: Easy help for VIP - by Dainyzxz - 07.01.2011, 02:22
Re: Easy help for VIP - by John_F - 07.01.2011, 22:41

Forum Jump:


Users browsing this thread: 1 Guest(s)