Some Small Helps... (rep++)
#6

Код:
#include <dini>

In OnGameModeInit :

if(!fexist("score.ini")) dini_Create("score.ini");

In OnPlayerDisconnect :

dini_IntSet("score.ini",PlayerName(playerid),GetPlayerScore(playerid));
For zones:

Код:
new gangzone1;
new gsfzone;

public OnGameModeInit()
{
        gsfzone = GangZoneCreate(2220.3711,-1937.0173,2737.8306,-1372.4310);
	// Don't use these lines if it's a filterscript
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}


public OnFilterScriptInit()
{
        gsfzone = GangZoneCreate(2220.3711,-1937.0173,2737.8306,-1372.4310);
        return 1;
}


public OnPlayerConnect(playerid)
{
        GangZoneShowForPlayer(playerid,gsfzone,0x00C714AA);
        return 1;
}
For more info about zones read: https://sampforum.blast.hk/showthread.php?tid=303538
Reply


Messages In This Thread
Score Not Saving?? (rep++) - by iOmar - 07.04.2012, 16:06
Re: Some Small Helps... (rep++) - by iOmar - 08.04.2012, 01:56
Re: Some Small Helps... (rep++) - by ReneG - 08.04.2012, 02:40
Re: Some Small Helps... (rep++) - by .FuneraL. - 08.04.2012, 03:13
Re: Some Small Helps... (rep++) - by $$inSane - 08.04.2012, 03:19
Re: Some Small Helps... (rep++) - by $$inSane - 08.04.2012, 03:24
Re: Some Small Helps... (rep++) - by iOmar - 08.04.2012, 03:31
Re: Some Small Helps... (rep++) - by .FuneraL. - 08.04.2012, 03:34
Re: Some Small Helps... (rep++) - by iOmar - 08.04.2012, 03:36
Re: Some Small Helps... (rep++) - by .FuneraL. - 08.04.2012, 03:37

Forum Jump:


Users browsing this thread: 1 Guest(s)