08.09.2011, 21:55
pawn Код:
CMD:darvip(playerid, params[])
{
if(AdminInfo[playerid][Admin] < 4) return SendClientMessage(playerid, -1, "ERRO: Nivel de Admin Insuficiente, Apenas [4+]");
{
if(!sscanf(params, "ud", id, viplvl))
{
if(viplvl > 1 || viplvl < 3)
{
VipInfo[id][Vip] = viplvl; format(string2, sizeof(string2),"o Admin:%s Te Deu Vip Level :%d",GetPlayerNameEx(playerid),viplvl);
SendClientMessage(playerid, -1, string2);
}
}
}
return 1;
} //
CMD:kitvip(playerid, params[])
{
if(VipInfo[playerid][Vip] < 3) return SendClientMessage(playerid, -1, "ERRO: Vocк nao й vip /ajudavip pra mais informaзoes !!");
ShowPlayerDialog(playerid, 700, DIALOG_STYLE_LIST, "Sistema de Kit Vip", "Vip Bronze\n Vip Prata\n Vip Ouro", "OK","Cancelar");
return 1;
}
if(dialogid == 700)
{
if(response)
{
if(listitem == 0)
{
if(VipInfo[playerid][Vip] != 1) return SendClientMessage(playerid, -1, "");
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24,100);
SendClientMessage(playerid, -1, "testando..");
}
if(listitem == 1)
{
if(VipInfo[playerid][Vip] != 2) return SendClientMessage(playerid, -1, "");
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24,100);
SendClientMessage(playerid,-1,"mensage de test");
}
if(listitem == 2)
{
if(VipInfo[playerid][Vip] != 3) return SendClientMessage(playerid, -1, "");
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24,100);
SendClientMessage(playerid,-1,"mensage de test");
}
}
}
se nao entenderao avisa