1. Elsõnek ezt a Segítség részre kelet volna nyitni mivel nem kérsz scriptet csak segítséget
2. részt meg
Definiálod a script elején
//Pizza munka
#define Pizza1 -127.5900,1190.6591,19.3156
#define Pizza2 -218.0408,1206.0242,19.3160
#define Pizza3 -225.9044,1206.3059,19.3074
#define Pizza4 -239.9241,1206.8058,19.3057
#define Pizza5 -267.3855,1140.2653,19.3165
#define Pizza6 -180.8551,1089.1061,19.3167
#define Pizza7 -86.0004,1024.3998,19.2780
#define Pizza8 -21.2894,986.8624,19.4672
#define Pizza9 -3.2561,980.3727,19.5379
#define Pizza10 5.2415,953.9409,19.1005
#define Pizza11 -15.0647,920.9720,21.4289
#define Pizza12 -70.5281,933.0963,20.1779
#define Pizza13 -142.9158,933.4985,19.1510
(Nekem ezek Fort Carson vannak!)
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
{
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza1))
{
SetPlayerCheckpoint(playerid, Pizza2, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza2))
{
SetPlayerCheckpoint(playerid, Pizza3, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza3))
{
SetPlayerCheckpoint(playerid, Pizza4, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza4))
{
SetPlayerCheckpoint(playerid, Pizza5, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza5))
{
SetPlayerCheckpoint(playerid, Pizza6, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza6))
{
SetPlayerCheckpoint(playerid, Pizza7, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza7))
{
SetPlayerCheckpoint(playerid, Pizza8, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza8))
{
SetPlayerCheckpoint(playerid, Pizza9, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza9))
{
SetPlayerCheckpoint(playerid, Pizza10, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza10))
{
SetPlayerCheckpoint(playerid, Pizza11, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza11))
{
SetPlayerCheckpoint(playerid, Pizza12, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza12))
{
SetPlayerCheckpoint(playerid, Pizza13, 10.0);
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
if (IsPlayerInRangeOfPoint(playerid, 10.0,Pizza13))
{
GivePlayerMoney(playerid, 1200);
GameTextForPlayer(playerid, \"~g~Kiszallitva!\", 3000, 3);
SendClientMessage(playerid, COLOR_RED,\"Kaptál 1200Ft ((Ami 1 pizza ára))\");
}
}
return 1;
}
És ha beszáll egy pizzaboy ba akkor ki is rakja az pizza1 cp t és megy szépen sorjában
Ha ezt akarod csak útnyalóval akkor megváltoztatod a kordinátákat és a pizza1 helyett utnyalo1 vagy amit akarsz