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;
}