VIP/DONATOR CMD HELP!!!
#1

I need help for my server because we don't have any VIP/Donator CMDS

I need a CMD in my VIP LOUNGE

/viparmor , /vipheal and /getvipgun

GUNS:
Desert Eagle
AK-47
M4
Combat Shotgun (Every 30 Minutes Can Get This Gun)
Sawn-Off (Every One Hour Can Get This Gun)
Sd-Pistol
Shotgun
MP5
Teq-9
Granade
Reply
#2

Do you have VIP system?
Reply
#3

This:
Quote:
Originally Posted by gtascripterultimate
Посмотреть сообщение
Do you have VIP system?
You need a V.I.P/Donator system.
For an example, You want these commands only for Donating players, isn't it?

pawn Код:
/*
~ This is going to check if a player has a donator status or not.
~ If so, player will receive this message: "You're a Donator".
~ If not, player will receive the error message instead: "You're not a Donator!");
*/


CMD:donator(playerid, params[])
{
if(PlayerInfo[playerid][pDonator] == 1)
{
SendClientMessage(playerid, 0x00ADFFFF, "You're a Donator.");
}
else
{
SendClientMessage(playerid, 0xE6000000, "You're not a Donator!");
}
return 1;
}

// Wan
I made command examples You wanted, but still You'll need a V.I.P/Donator system.
Here they're:

pawn Код:
// Viparmour command
CMD:viparmour(playerid, params[])
{
if(PlayerInfo[playerid][pDonator] == 1)
{
SetPlayerArmour(playerid, 100);

SendClientMessage(playerid, 0x00ADFFFF, "* V.I.P Armour activated.");
}
else
{
SendClientMessage(playerid, 0xE6000000, "You're not a Donator!");
}
return 1;
}


// Viphealth command
CMD:viphealth(playerid, params[])
{
if(PlayerInfo[playerid][pDonator] == 1)
{
SetPlayerHealth(playerid, 100);

SendClientMessage(playerid, 0x00ADFFFF, "* V.I.P Health activated.");
}
else
{
SendClientMessage(playerid, 0xE6000000, "You're not a Donator!");
}
return 1;
}


// Vipweapons command
CMD:vipweapons(playerid, params[])
{
if(PlayerInfo[playerid][pDonator] == 1)
{
GivePlayerWeapon(playerid, 31, 99999); // M4 - ammo - 99999
// Also, You cannot have M4 and AK-47 in the same time.

SendClientMessage(playerid, 0x00ADFFFF, "* V.I.P Weapon set activated.");
}
else
{
SendClientMessage(playerid, 0xE6000000, "You're not a Donator!");
}
return 1;
}

Only a Donator will be able to use these commands.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)