21.03.2015, 15:46
Quote:
You can have only one checkpoint so you should check positions to do any action on player.
|
The one from the filterscript:
PHP код:
public OnFilterScriptInit()
{
printf("============================================");
printf("| Mike's CarShop Loaded! |");
printf("============================================");
Create3DTextLabel("CarShop", 0x00FF00FF,88.9491,2051.5032,18.0701, 40, 0, 0);
return 1;
}
public OnPlayerConnect(playerid)
{
CarCP[playerid] = CPS_AddCheckpoint(88.9491,2051.5032,18.0701, 3.7, 40);
CarCP[playerid] = 0;
SpawnedCar[playerid] = 0;
return 1;
}
PHP код:
//snakes farm
CP[SNAKE] = CreateDynamicCP(-36.5458, 2347.6426, 24.1406,3, -1,-1,-1,100.0);
Zone[SNAKE] = GangZoneCreate(-62.5000000000005,2318.359375,23.4375,2390.625);
//area 51
CP[BIG] = CreateDynamicCP(10.9908,2008.8751,17.6406,3, -1,-1,-1,100.0);
Zone[BIG] = GangZoneCreate(-66.875,1900.265625,100.828125,2115.234375);
//army hotel
CP[ARMY] = CreateDynamicCP(37.7949,2242.1582,126.4790,3, -1,-1,-1,100.0);
Zone[ARMY] = GangZoneCreate(-2.393291, 2210.007324, 69.606704, 2274.007324);
//Airport
CP[AIRPORT] = CreateDynamicCP(408.1432,2450.1574,16.5,3, -1,-1,-1,100.0);
Zone[AIRPORT] = GangZoneCreate(89.0625000000005,2418.75,466.40625,2617.96875);