VIP Commands help -
Majed - 29.07.2012
Hello guys,
I'm still beginner at scripting and I wanted to ask you,
How can I add/make VIP Commands to LuxAdmin system?
There are 3 VIP levels, But none of them got any cmds?
Also I would like to add more levels.
Can you please help?
Thank you in advanced.
Joker.
Re: VIP Commands help -
Friend+ - 29.07.2012
i need too vips commands, if anyone can do plz give me too download link, Thanks
Re: VIP Commands help -
XStormiest - 29.07.2012
if(IsPlayerVipType(playerid,type) )
ex if(! IsPlayerVipType(playerid,1) ) return 0;
Re: VIP Commands help -
NuLIO - 29.07.2012
i need some cmds for vip system please
Re: VIP Commands help -
Scorpion Yemen - 29.07.2012
and me i want some commands plz
Re: VIP Commands help -
Devilxz97 - 29.07.2012
create it then
ex;
HITMAN SKILL for VIP;
/mycar - private car
/myhouse - tele u to your house
/vchat [Message]
etc..
Re: VIP Commands help -
Majed - 29.07.2012
Quote:
Originally Posted by NuLIO
i need some cmds for vip system please
|
Quote:
Originally Posted by Scorpion Yemen
and me i want some commands plz
|
Quote:
Originally Posted by Devilxz97
create it then
ex;
HITMAN SKILL for VIP;
/mycar - private car
/myhouse - tele u to your house
/vchat [Message]
etc..
|
Wth Guys,?
You just spoiled my topic. ._.
and Devil if ur smart create it then.
I don't know how to create cmds for VIP's.
I'm still new.
Re: VIP Commands help -
Devilxz97 - 29.07.2012
-,-
pawn Код:
#include a_samp
#include zcmd
enum pInfo
{
pVIP
}
new PlayerInfo[MAX_PLAYERS][pInfo];
CMD:vhitman(playerid, params[])
{
if(PlayerInfo[playerid][pVIP] >= 1)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,200);
}
else
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,0);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,0);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,0);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,0);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,0);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,0);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,0);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,0);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,0);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,0);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,0);
}
return 1;
}
CMD:myhouse(playerid, params[])
{
if(PlayerInfo[playerid][pVIP] >= 1)
{
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
}
return 1;
}
CMD:vchat(playerid, params[])
{
new string[777], pName[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pVIP] >= 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "{00FF00}[VIP]{FFFFFF}%s:{FFFF00}%s", pName, params);
SendClientMessageToAll(-1, string);
}
}
else
{
SendClientMessage(playerid, -1, "You are not VIP member!");
}
return 1;
}
Re: VIP Commands help -
Pravin - 29.07.2012
add /vheal , /varmour etc. etc. what you use? zcmd , dcmd etc.. ?
Re: VIP Commands help -
Majed - 29.07.2012
Quote:
Originally Posted by Devilxz97
-,-
pawn Код:
#include a_samp #include zcmd
enum pInfo { pVIP } new PlayerInfo[MAX_PLAYERS][pInfo];
CMD:vhitman(playerid, params[]) { if(PlayerInfo[playerid][pVIP] >= 1) { SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200); SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,200); SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,200); SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,200); SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200); SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,200); SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200); SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,200); SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,200); SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,200); SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,200); } else { SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,0); SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,0); SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,0); SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,0); SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,0); SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,0); SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,0); SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,0); SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,0); SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,0); SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,0); } return 1; }
CMD:myhouse(playerid, params[]) { if(PlayerInfo[playerid][pVIP] >= 1) { SetPlayerPos(playerid, Float:x, Float:y, Float:z); } return 1; }
CMD:vchat(playerid, params[]) { new string[777], pName[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pVIP] >= 1) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1) GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "{00FF00}[VIP]{FFFFFF}%s:{FFFF00}%s", pName, params); SendClientMessageToAll(-1, string); } } else { SendClientMessage(playerid, -1, "You are not VIP member!"); } return 1; }
|
Oh wtf?
hehe thanks for helping :P.
But still more xD.
ty