Hy!
Egy munka rendszeren dolgozom minden szép és jó... de a checkpointok bazi nagyok
és szeretném hogy kisebbek legyenek hogy tudom megoldani???
Parancs:
if (strcmp(\"/pizza\", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
{
PizzaJob[playerid] = 1;
new name[MAX_PLAYER_NAME], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), \"\", name );
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerCheckpoint(playerid,2012.6134,-1729.3796,13.1536,10);
SendClientMessage(playerid,COLOR_YELLOW,\"\");
return 1;
}
SendClientMessage(playerid, COLOR_RED,\"\");
}
return 0;
}
EnterCheckpoint:
public OnPlayerEnterCheckpoint(playerid)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
{
if(PizzaJob[playerid] == 1){
PizzaJob[playerid] = 2;
SetPlayerCheckpoint(playerid,1362.4368,250.8896,19.5669,10);
SendClientMessage(playerid,COLOR_YELLOW,\"* Please go to the next mark, and you\'ll be payed!\");
return 1;
}
if(PizzaJob[playerid] == 2){
PizzaJob[playerid] = 3;
SetPlayerCheckpoint(playerid,1300.4159,193.1276,20.5233,10);
return 1;
}
if(PizzaJob[playerid] == 3){
PizzaJob[playerid] = 4;
SetPlayerCheckpoint(playerid,1299.1611,140.5505,20.4068,10);
return 1;
}
if(PizzaJob[playerid] == 4){
PizzaJob[playerid] = 5;
SetPlayerCheckpoint(playerid,1235.1870,224.0363,19.5547,10);
return 1;
}
if(PizzaJob[playerid] == 5){
PizzaJob[playerid] = 6;
SetPlayerCheckpoint(playerid,1256.4705,274.8458,19.5547,10);
return 1;
}
if(PizzaJob[playerid] == 6){
PizzaJob[playerid] = 7;
SetPlayerCheckpoint(playerid,1272.0430,309.3490,19.5547,10);
return 1;
}
if(PizzaJob[playerid] == 7){
PizzaJob[playerid] = 8;
SetPlayerCheckpoint(playerid,1294.8738,235.4551,19.5547,10);
return 1;
}
if(PizzaJob[playerid] == {
PizzaJob[playerid] = 9;
SetPlayerCheckpoint(playerid,1374.8148,469.3127,20.1811,10);
return 1;
}
if(PizzaJob[playerid] == 9){
PizzaJob[playerid] = 10;
SetPlayerCheckpoint(playerid,1419.6729,389.4256,19.3297,10);
return 1;
}
if(PizzaJob[playerid] == 10){
PizzaJob[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_YELLOW,\"\");
GivePlayerMoney(playerid,400);
}
}
return 1;
}