Cual es el error Aca alguien me puede decir mi GM es de ZenonCity y bueno yo lo reforme pero quiero ponerme vip y cuando me pongo y salgo del server y vuelvo a entrar se sale el vip como puedo hacer para que dure 30dias los codigos del vip en el GM son:
else if(strcmp(params,"vip",true) == 0){
if(VIPOffer[playerid] < 999){
if(GetPlayerCash(playerid) >= VIPPrice[playerid]){
if(IsPlayerConnected(VIPOffer[playerid])){
if(Info[VIPOffer[playerid]][pVIP] == 0) return SendClientMessageEx(playerid,COLOR_GREY, "Ese usuario no es Premium.");
new viptype[10];
switch(Info[VIPOffer[playerid]][pVIP])
{
case 1: viptype = "Bronce";
case 2: viptype = "Silver";
case 3: viptype = "Gold";
case 4: viptype = "Platinum";
}
format(string, sizeof(string), "* Compraste el VIP %s de %s por $%d.",viptype,GetPlayerNameEx(VIPOffer[playerid]),VIPPrice[playerid]);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s le has vendido tu VIP %s y ganaste $%d de dinero.",GetPlayerNameEx(playerid),viptype,VIPPrice[playerid]);
SendClientMessageEx(VIPOffer[playerid], COLOR_LIGHTBLUE, string);
new ip[32], ipex[32];
GetPlayerIp(playerid, ip, sizeof(ip));
GetPlayerIp(VIPOffer[playerid], ipex, sizeof(ipex));
format(string, sizeof(string), "[VIP DEAL] %s(IP:%s) pagó VIP %s por $%d de %s(IP:%s)", GetPlayerNameEx(playerid), ip, viptype, VIPPrice[playerid],GetPlayerNameEx(VIPOffer[playerid]), ipex);
Log("logs/pay.log", string);
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "[[COMPRA IG] VIP EXCHANGE] %s dejo de ser VIP %s, razón: compra a %s (%d/%d/%d)",GetPlayerNameEx(VIPOffer[playerid]),viptype,GetPlayerNameEx(playerid),year,month,day);
Log("logs/setvip.log", string);
new level = Info[VIPOffer[playerid]][pVIP],
dExpire = Info[VIPOffer[playerid]][pVIPDateD],
mExpire = Info[VIPOffer[playerid]][pVIPDateM];
GivePlayerCash(VIPOffer[playerid], VIPPrice[playerid]);
GivePlayerCash(playerid, -VIPPrice[playerid]);
else if(strcmp(params,"vip",true) == 0){
if(VIPOffer[playerid] < 999){
if(GetPlayerCash(playerid) >= VIPPrice[playerid]){
if(IsPlayerConnected(VIPOffer[playerid])){
if(Info[VIPOffer[playerid]][pVIP] == 0) return SendClientMessageEx(playerid,COLOR_GREY, "Ese usuario no es Premium.");
new viptype[10];
switch(Info[VIPOffer[playerid]][pVIP])
{
case 1: viptype = "Bronce";
case 2: viptype = "Silver";
case 3: viptype = "Gold";
case 4: viptype = "Platinum";
}
format(string, sizeof(string), "* Compraste el VIP %s de %s por $%d.",viptype,GetPlayerNameEx(VIPOffer[playerid]),VIPPrice[playerid]);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s le has vendido tu VIP %s y ganaste $%d de dinero.",GetPlayerNameEx(playerid),viptype,VIPPrice[playerid]);
SendClientMessageEx(VIPOffer[playerid], COLOR_LIGHTBLUE, string);
new ip[32], ipex[32];
GetPlayerIp(playerid, ip, sizeof(ip));
GetPlayerIp(VIPOffer[playerid], ipex, sizeof(ipex));
format(string, sizeof(string), "[VIP DEAL] %s(IP:%s) pagó VIP %s por $%d de %s(IP:%s)", GetPlayerNameEx(playerid), ip, viptype, VIPPrice[playerid],GetPlayerNameEx(VIPOffer[playerid]), ipex);
Log("logs/pay.log", string);
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "[[COMPRA IG] VIP EXCHANGE] %s dejo de ser VIP %s, razón: compra a %s (%d/%d/%d)",GetPlayerNameEx(VIPOffer[playerid]),viptype,GetPlayerNameEx(playerid),year,month,day);
Log("logs/setvip.log", string);
new level = Info[VIPOffer[playerid]][pVIP],
dExpire = Info[VIPOffer[playerid]][pVIPDateD],
mExpire = Info[VIPOffer[playerid]][pVIPDateM];
GivePlayerCash(VIPOffer[playerid], VIPPrice[playerid]);
GivePlayerCash(playerid, -VIPPrice[playerid]);