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.