04.07.2009, 13:36
First thing:
I got some trouble, I'm trying to move a barrier at the LSPD but it just moves up or down slightly
These are my objects
My second thing is when I open the carspawns.cfg, the standard car spawn code looks like this
When ever I add a line, like the above all in the correct order update my script with say 141 cars instead of 140 (If I added just one more spawn) the server starts but no-one can login due to crashes.
I got some trouble, I'm trying to move a barrier at the LSPD but it just moves up or down slightly
Код:
if (strcmp(cmdtext, "/bopen", true) == 0) { if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1) { MoveObject(lspdbarrier, 1544.713013, -1630.845947, 13.129566, 1000); return 1; //lspdbarrier = CreateObject(968, 1544.713013, -1630.845947, 13.129566, 0.0000, 0.0000, 90.0000); } else { SendClientMessage(playerid, COLOR_GREY, "You are not a cop!"); } return 1; } if (strcmp(cmdtext, "/bclose", true) == 0) { if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1) { MoveObject(lspdbarrier, 1544.720581, -1630.904663, 13.257036, 1000); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "You are not a cop!"); } return 1; }
pawn Код:
lspdbarrier = CreateObject(968, 1544.720581, -1630.904663, 13.257036, 0.0000, 91.1002, 90.0000);//PD Close
// lspdbarrier = CreateObject(968, 1544.713013, -1630.845947, 13.129566, 0.0000, 0.0000, 90.0000);//PD Open
My second thing is when I open the carspawns.cfg, the standard car spawn code looks like this
Код:
483|386.869873|2453.238281|16.500000|1.564520|-1|-1|255|0