[AJUDA] Sistema Vip
#1

eaee Galera , Beleza ? Queria + uma ajuda de voces , :
em que parte desse Codigo eu troco para ficar 3 Leveis de Vip , ?
exemplo ? vip bronze Vip prata VipOuro .
Espero Uma Ajuda de Voces ;d

Quote:

Quote:
1°Coloque no topo do GM/FS

#include //Include
new Vip[MAX_PLAYERS]; // Variavel


2°Coloque No OnGameModeInit

if(!fexist("vip.ini")) dini_Create("vip.ini"); // Criarar o Arquivo Vip.ini caso nao exista !


3°Agora em OnPlayerConnect Adicione :


if(dini_Isset("vip.ini",PlayerName(playerid))) (Vip[playerid] = dini_Int("vip.ini",PlayerName(playerid))); // CARREGARAR OS PLAYES VIP'S
SendClientMessage(playerid,0x0000BBAA,"Sistema By: Juninho_Boy !");


4°Adicione em OnPlayerDisconnect


dini_IntSet("vip.ini",PlayerName(playerid),Vip[playerid]);


5° No final do Gm :



stock PlayerName(playerid) {
new PlayerName[MAX_PLAYERS];
GetPlayerName(playerid, PlayerName, MAX_PLAYERS);
return PlayerName;}

Reply
#2

Nenhum, apenas carregue e sete a variбvel com o level que vocк quer...

Sу um exemplo:
pawn Код:
Vip[playerid] = 0;//Nгo й vip.
Vip[playerid] = 1;//Vip simples
Vip[playerid] = 2;//Super vip
Vip[playerid] = 3;//Vip norris
pawn Код:
if(Vip[playerid] < 3) return SendClientMessage(playerid, -1, "Vocк nгo й Vip Norris e nгo pode usar esse comando.");
Reply
#3

Valeuu *-* + Rep
Reply
#4

Sim , mas Onde eu coloco o esse Codigo ?

Quote:

Vip[playerid] = 0;//Nгo й vip.
Vip[playerid] = 1;//Vip simples
Vip[playerid] = 2;//Super vip
Vip[playerid] = 3;//Vip norris

Reply
#5

Nos comandos/funзхes que vai utilizar.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)