11.01.2018, 08:20
Quote:
You know, if you indented the code correctly, you'd likely see what you need to edit...
|
Код:
if(PlayerInfo[playerid][LoggedIn] == 1 && PlayerInfo[playerid][Vip] <= 1)
but
Код:
if(PlayerInfo[playerid][Cookies] < 30000) return SendClientMessage(playerid, -1, "{FF0000}ERROR : You dont have enough cookies to be V.I.P 3!"); if(PlayerInfo[playerid][LoggedIn] == 1)//logged is an example.Replace it with your login variable. { PlayerInfo[playerid][Vip] = 3; PlayerInfo[playerid][Cookies] -= 30000; GameTextForPlayer(playerid,"Vip Promoted", 2000, 3); SendClientMessage(playerid, -1, "{00FF40}You have received {FF0000}V.I.P {00FF40}Status 3"); SendClientMessage(playerid, -1, "{00FF40}Use /vcmds or /vcmd1 to see {FF0000}/VIPS {00FF40}Commands"); SavePlayer(playerid); } else SendClientMessage(playerid, -1, "{FF0000}ERROR : {00FF40}You already received {FF0000}V.I.P {00FF40}Status 3"); } }