08.03.2012, 02:32
Hello,
I'm having a problem with this. I want it, so if a player is already level 1, 2, 3, or 4 VIP they can't use this. Here's my current code.
I've tried editing
Multiple times. It's just not working out. I've been trying for about a hour. So now I thought was time to come here.
Any help is appreciated, thanks.
I'm having a problem with this. I want it, so if a player is already level 1, 2, 3, or 4 VIP they can't use this. Here's my current code.
pawn Код:
if(dialogid == 255 && response)
{
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][pCookies] >= 5)
{
PlayerInfo[playerid][pVip] = 4;
if(PlayerInfo[playerid][pVip] >= 4)
{
SetTimerEx("TempVip", 150000, false, "i", playerid);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
new MyString[128];
PlayerInfo[playerid][pCookies] = PlayerInfo[playerid][pCookies] - 5;
format(MyString,sizeof MyString, "You are now temporary VIP Level 3 for 15 minutes.");
SendClientMessage(playerid, COLOR_GREEN, MyString);
}
else SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: You're already a VIP member.");
}
else SendClientMessage(playerid, COLOR_BRIGHTRED, "ERROR: You don't have enough cookies. You need 5. You can check your cookies with /mycookies.");
}
}
}
return 1;
}
pawn Код:
if(PlayerInfo[playerid][pVip]
Any help is appreciated, thanks.