help with premium system! :(
#1

Hey, making premium system and i got problem.i have premium.pwn and there is everything what there should be.
but in my gamemode[zombiepanic.pwn] i have one PREMIUM code.



Код:
new PREMIUM[MAX_PLAYERS];



Код:
if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(vehicleid) == 457 || GetVehicleModel(vehicleid) == 530 || GetVehicleModel(vehicleid) == 574)
	{
	if(PREMIUM[playerid] == 0) GameTextForPlayer(playerid, "~w~Only ~r~Premium ~b~Players ~w~Can Use This Car.", 3000, 3);
	if(PREMIUM[playerid] == 0) RemovePlayerFromVehicle(playerid);
	if(PREMIUM[playerid] == 0) return 0;
    if(PlayerTeam[playerid] == 0)
	{
       SendClientMessage(playerid, COLOR_PURPLE, "You have entered to PREMIUM players car.");
       GameTextForPlayer(playerid, "~g~You have entered to ~r~Premium ~b~Players ~g~car.", 3000, 3);
	}
	else if(PlayerTeam[playerid] == 1)
	{
		       RemovePlayerFromVehicle(playerid);
               SendClientMessage(playerid, COLOR_RED, "Brains....No brains heeere....");
               GameTextForPlayer(playerid, "~r~Brains....No brains heeere....", 3000, 3);
    	}
	}
problem is that it doesnt matter if my PREMIUM is 0 or 1, when i goto any of those cars it just says: "only premium players can use this car".
Reply


Messages In This Thread
help with premium system! :( - by Randomai - 02.03.2011, 10:56
Re: help with premium system! :( - by Randomai - 02.03.2011, 11:40
Re: help with premium system! :( - by alpha500delta - 02.03.2011, 11:50
Re: help with premium system! :( - by Randomai - 02.03.2011, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)