Wanted Geplaatst: 6 oktober 2009 Rapport Geplaatst: 6 oktober 2009 (bewerkt) Ik heb mn script aangepast en zoveel errors eruit gehaald maar ik krijg er toch nog 3: H:\Grand Theft Auto - San Andreas\SA-MP Server 0.2\gamemodes\NL-Roleplay.pwn(399) : error 017: undefined symbol "playername" H:\Grand Theft Auto - San Andreas\SA-MP Server 0.2\gamemodes\NL-Roleplay.pwn(401) : warning 217: loose indentation H:\Grand Theft Auto - San Andreas\SA-MP Server 0.2\gamemodes\NL-Roleplay.pwn(404) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. Weet iemand misschien wat het probleem is? Groeten, Jasper Het zou helpen als je ons jouw code geeft.Maar als ik zo naar de fouten kijk, zie ik dat je bovenaan "new playername[MAX_PLAYER_NAME];" moet neerzetten. Ook heb je ergens een tab te veel of te weinig. Klik hier voor meer informatie over indentitation (engels). De laatste fout kunnen wij alleen oplossen als je ons het stukje code geeft waar de fout in zit. Bewerkt: 6 oktober 2009 door Wanted Reageren
Ixecube Geplaatst: 6 oktober 2009 Auteur Rapport Geplaatst: 6 oktober 2009 Ik gebruik deze script: if(strcmp("/takejobcop", cmdtext, true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "You are now an offcial police member"); SendClientMessage(playerid, COLOR_YELLOW, "Typ /copcmds for the commands"); gTeam[playerid] = TEAM_COP0; SetPlayerColor(playerid, 0xCAEBFFFF); SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1553.2588,-1676.1017,16.1953); GivePlayerWeapon(playerid, 41, 200); GivePlayerWeapon(playerid, 3, 1); SetPlayerSkin(playerid, 280); dini_IntSet("Cop.txt", (playername), gTeam[playerid]); } return 1; } Reageren
Rickyboy30 Geplaatst: 6 oktober 2009 Rapport Geplaatst: 6 oktober 2009 Hey! Ik zit nu ook met dit probleem, Ik wil graag ook een faction maken. Het moet een script zijn die ook opslaat wie er allemaal member is van die faction! In het script moet staan: - SkinID * Police Skins * Of faction members Mogen alleen PD auto's rijden - En nog wat andere troep waar ik nu niet op kan komen, ben stront misselijk. Dit zijn commands van 'The Godfather' Script: /invite: Iemand uitnodigen in de faction /uninvite: Iemand eruit trappen /makeleader: Stelt iemand aan om leider te zijn van de faction /setrank: Stelt de rank in van de factionmember if(strcmp(cmd, "/invite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]"); return 1; } new para1; new ftext[20]; para1 = ReturnUser(tmp); if (PlayerInfo[playerid][pLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255) { if(PlayerInfo[para1][pJob] > 0) { SendClientMessage(playerid, COLOR_GREY, " Can't invite him, player has a Job !"); return 1; } if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); } else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); } else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); } else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Firemen/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); } else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); } else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); } else if(PlayerInfo[playerid][pLeader] == 7) { return 1; } else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); } else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "CNN Studio"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); } else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); } else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); } else { return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader]; PlayerInfo[para1][pRank] = 1; printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext); format(string, sizeof(string), " You have Joined the %s, you were invited by Leader %s", ftext, sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " You have Invited %s to join the %s.", giveplayer,ftext); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); SetPlayerInterior(para1,0); new rand = random(sizeof(gInviteSpawns)); SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]); SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]); SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); TogglePlayerControllable(para1, 0); SelectChar[para1] = 255; SelectCharID[para1] = PlayerInfo[para1][pMember]; SelectCharPlace[para1] = 1; PlayerInfo[para1][pModel] = ChosenSkin[para1]; PlayerInfo[para1][pChar] = ChosenSkin[para1]; SendClientMessage(para1, COLOR_LIGHTRED, "* Use 'next' to Select the char you want to use."); SendClientMessage(para1, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'."); } else { SendClientMessage(playerid, COLOR_GREY, " That player is currently Wanted / a Different Team / or already a Family Member."); return 1; } } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command(leaders only)!"); } } return 1; } if(strcmp(cmd, "/uninvite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /uninvite [playerid/PartOfName]"); return 1; } new para1; para1 = ReturnUser(tmp); if (PlayerInfo[playerid][pLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (PlayerInfo[para1][pMember] > 0) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); printf("AdmCmd: %s has uninvited %s.", sendername, giveplayer); format(string, sizeof(string), "* You have been kicked from a Family / Police Force, by Leader %s.", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); SendClientMessage(para1, COLOR_LIGHTBLUE, "* You are now a Civilian again."); gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 3; PlayerInfo[para1][pMember] = 0; PlayerInfo[para1][pRank] = 0; PlayerInfo[para1][pChar] = 0; new rand = random(sizeof(CIV)); SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[para1][pModel] = CIV[rand]; MedicBill[para1] = 0; SpawnPlayer(para1); format(string, sizeof(string), " You have kicked %s from his Family / Police Force.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command(Leaders only)!"); } } return 1; } if(strcmp(cmd, "/makeleader", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeleader [playerid/PartOfName] [Number(1-10)]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 11 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 11!"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 1337) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " That player is in a Faction / Family !"); return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pLeader] = level; format(string, sizeof(string), " You have been promoted to Leader to your requested Faction by Admin %s", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " You have given %s control to run Faction Number %d.", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); if(level == 0) { PlayerInfo[para1][pChar] = 0; } else if(level == 1) { PlayerInfo[para1][pChar] = 288; } //Police Force else if(level == 2) { PlayerInfo[para1][pChar] = 286; } //FBI/ATF else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //National Guard else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulance else if(level == 5) { PlayerInfo[para1][pChar] = 113; } //La Cosa Nostra else if(level == 6) { PlayerInfo[para1][pChar] = 120; } //Yakuza else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor else if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmans else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //News Reporters else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Driving/Flying School gTeam[para1] = 11; PlayerInfo[para1][pTeam] = 11; SetPlayerSkin(para1, PlayerInfo[para1][pChar]); } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } return 1; } if(strcmp(cmd, "/forceskin", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /forceskin [playerid/PartOfName]"); return 1; } new para1; para1 = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 4) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if(PlayerInfo[para1][pMember] < 1) { SendClientMessage(playerid, COLOR_GREY, " That player is not in a Family / Force !"); return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You are forced to Change your Skin by Admin %s.", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* You have forced %s To change his Skin.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); if(PlayerInfo[para1][pMember] == 1) { PlayerInfo[para1][pTeam] = 5; ChosenSkin[para1] = 59; } else if(PlayerInfo[para1][pMember] == 2) { PlayerInfo[para1][pTeam] = 6; ChosenSkin[para1] = 121; } else if(PlayerInfo[para1][pMember] == 3) { PlayerInfo[para1][pTeam] = 7; ChosenSkin[para1] = 98; } else if(PlayerInfo[para1][pMember] == 4) { PlayerInfo[para1][pTeam] = 8; ChosenSkin[para1] = 46; } else if(PlayerInfo[para1][pMember] == 5) { PlayerInfo[para1][pTeam] = 9; ChosenSkin[para1] = 174; } else if(PlayerInfo[para1][pMember] == 6) { PlayerInfo[para1][pTeam] = 2; ChosenSkin[para1] = 280; } else if(PlayerInfo[para1][pMember] == 7) { PlayerInfo[para1][pTeam] = 2; ChosenSkin[para1] = 164; } else if(PlayerInfo[para1][pMember] == 8) { PlayerInfo[para1][pTeam] = 10; ChosenSkin[para1] = 186; } else { return 1; } SetPlayerInterior(para1,0); new rand = random(sizeof(gInviteSpawns)); SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]); SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]); SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); TogglePlayerControllable(para1, 0); SelectChar[para1] = 255; SelectCharID[para1] = PlayerInfo[para1][pMember]; SelectCharPlace[para1] = 1; PlayerInfo[para1][pModel] = ChosenSkin[para1]; PlayerInfo[para1][pChar] = ChosenSkin[para1]; SendClientMessage(para1, COLOR_LIGHTRED, "* Use 'next' to Select the char you want to use."); SendClientMessage(para1, COLOR_LIGHTRED, "* If you've found the Char you want to use, type 'done'."); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } return 1; } if(strcmp(cmd, "/giverank", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /giverank [playerid/PartOfName] [Number(1-6)]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 6 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 6!"); return 1; } if (PlayerInfo[playerid][pLeader] >= 1) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pRank] = level; format(string, sizeof(string), " You have been promoted to a higher Rank by Leader %s", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " You have given %s Rank %d.", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command(Leaders Only)!"); } } return 1; } Reageren
Wanted Geplaatst: 7 oktober 2009 Rapport Geplaatst: 7 oktober 2009 Ik gebruik deze script: Ik heb hem voor je aangepast. Probeer dit eens: if(strcmp("/takejobcop", cmdtext, true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "You are now an offcial police member"); SendClientMessage(playerid, COLOR_YELLOW, "Typ /copcmds for the commands"); gTeam[playerid] = TEAM_COP0; SetPlayerColor(playerid, 0xCAEBFFFF); SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1553.2588,-1676.1017,16.1953); GivePlayerWeapon(playerid, 41, 200); GivePlayerWeapon(playerid, 3, 1); SetPlayerSkin(playerid, 280); new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); dini_IntSet("Cop.txt", (playername), gTeam[playerid]); return 1; } En dan bovenaan je script, in net onder "include <a_samp>" zet je dit neer, als je dat nog niet gedaan had: #define TEAM_COP0 1 static gTeam[MAX_PLAYERS]; Reageren
Ixecube Geplaatst: 7 oktober 2009 Auteur Rapport Geplaatst: 7 oktober 2009 Harstikke bedankt Wanted ik zal het vanavond uit proberen. Groeten, Jasper Reageren
Ixecube Geplaatst: 7 oktober 2009 Auteur Rapport Geplaatst: 7 oktober 2009 Ik heb het geprobeerd maar nu geeft die als enige nog deze error aan: H:\Grand Theft Auto - San Andreas\SA-MP Server 0.2\gamemodes\NL-Roleplay.pwn(473) : error 001: expected token: "#endif", but found "-end of file-" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Terwijl ik WEL #endif in mijn script heb zitten. Weet iemand misschien het probleem? Sorry voor al mijn vragen ik ben nogal nieuw met scripten. Reageren
Crusher!! Geplaatst: 7 oktober 2009 Rapport Geplaatst: 7 oktober 2009 Script graag.. je hebt ergens zitten klooien met #if defined of #if iets == iets of #else Reageren
Ixecube Geplaatst: 7 oktober 2009 Auteur Rapport Geplaatst: 7 oktober 2009 Sorry Hier is mn gamemode waar die script ook instaat: http://pastebin.com/m338ed510 Reageren
Crusher!! Geplaatst: 7 oktober 2009 Rapport Geplaatst: 7 oktober 2009 * Hier klikken * fixed Reageren
Ixecube Geplaatst: 7 oktober 2009 Auteur Rapport Geplaatst: 7 oktober 2009 (bewerkt) Ik heb hem nog even aangepast (Zaten nog 5 errors in) Maar nu kom ik echt niet meer verder. Deze errors krijg ik: H:\Grand Theft Auto - San Andreas\SA-MP Server 0.2\gamemodes\NL-Roleplay.pwn(320) : error 010: invalid function or declaration H:\Grand Theft Auto - San Andreas\SA-MP Server 0.2\gamemodes\NL-Roleplay.pwn(416) : error 017: undefined symbol "dini_IntSet" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. Van deze gamemode: #include <a_samp> #define TEAM_COP0 1 static gTeam[MAX_PLAYERS]; #if defined FILTERSCRIPT #define COLOR_LIGHTGREEN 0x9ACD32AA #define COLOR_LIGHTRED 0xFF6347AA #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_LIGHTBLUE2 0x0080FFAA #define COLOR_LIGHTGREEN 0x9ACD32AA #define COLOR_LIGHTORANGE 0xFF8000FF #define COLOR_DARKBROWN 0xB36C42FF #define COLOR_MEDIUMBLUE 0x1ED5C7FF #define COLOR_CYELLOW 0xE0E377AA #define COLOR_LIGHTYELLOW 0xE0E377AA #define COLOR_LIGHTYELLOW2 0xE0EA64AA #define COLOR_LIGHTYELLOW3 0xFF6347AA #define COLOR_DARKPURPLE 0x5F56F8AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_YELLOW2 0xF5DEB3AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_PURPLE 0xC2A2DAAA #define COLOR_DBLUE 0x2641FEAA #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xA10000AA #define COLOR_DARKRED 0xCD000000 #define COLOR_LIGHTRED 0xFF6347AA #define COLOR_LIGHT_BLUE 0x33CCFFAA #define COLOR_LIGHTBLUE 0x33CCFFAA public OnFilterScriptInit() { print("\n--------------------------------------"); print(" NL Roleplay"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n ###############################################"); print("< This Gamemode is made by: >"); print("< Jasper Brouwer (JD) >"); print(" ###############################################\n"); } #endif public OnGameModeInit() { //Underneath is for objects, vehicles and classes SetGameModeText("Roleplay"); //Begin LSPD Start positions AddPlayerClass(280,1530.4841,-1678.0131,5.8906,270.5176,0,0,0,0,0,0); //Police AddPlayerClass(281,1530.4841,-1678.0131,5.8906,270.5176,0,0,0,0,0,0); //Police AddPlayerClass(282,1530.4841,-1678.0131,5.8906,270.5176,0,0,0,0,0,0); //Police AddPlayerClass(283,1530.4841,-1678.0131,5.8906,270.5176,0,0,0,0,0,0); //Police AddPlayerClass(284,1530.4841,-1678.0131,5.8906,270.5176,0,0,0,0,0,0); //Police AddPlayerClass(285,1530.4841,-1678.0131,5.8906,270.5176,0,0,0,0,0,0); //Police AddPlayerClass(288,1530.4841,-1678.0131,5.8906,270.5176,0,0,0,0,0,0); //Police //End LSPD Start positions //Begin objects LSPD CreateObject(3749, 1541.4873046875, -1627.6904296875, 18.241226196289, 0.000000, 0.000000, 269.72534179688); // CreateObject(983, 1539.2783203125, -1625.2548828125, 17.274824142456, 0.000000, 0.000000, 0.000000); // CreateObject(983, 1539.2783203125, -1625.2548828125, 16.294940948486, 0.000000, 0.000000, 0.000000); // CreateObject(983, 1539.259765625, -1630.1706542969, 16.303455352783, 0.000000, 0.000000, 0.000000); // CreateObject(983, 1539.259765625, -1630.169921875, 17.274824142456, 0.000000, 0.000000, 0.000000); // CreateObject(983, 1539.4223632813, -1634.021484375, 13.236650466919, 0.000000, 0.000000, 0.000000); // CreateObject(983, 1539.421875, -1634.021484375, 15.030669212341, 0.000000, 0.000000, 0.000000); // CreateObject(983, 1539.421875, -1634.021484375, 14.147459983826, 0.000000, 0.000000, 0.000000); // CreateObject(992, 1540.0385742188, -1616.2397460938, 17.310068130493, 0.000000, 0.000000, 89.295776367188); // CreateObject(992, 1544.3857421875, -1636.634765625, 16.864721298218, 0.000000, 0.000000, 312.48962402344); // CreateObject(992, 1544.3857421875, -1636.634765625, 14.53718662262, 0.000000, 0.000000, 312.48962402344); // CreateObject(992, 1540.0999755859, -1612.8690185547, 17.310068130493, 0.000000, 0.000000, 89.291381835938); // CreateObject(992, 1540.0980224609, -1609.4844970703, 17.328466415405, 0.000000, 0.000000, 89.291381835938); // CreateObject(992, 1540.0314941406, -1606.0893554688, 17.328466415405, 0.000000, 0.000000, 89.291381835938); // CreateObject(992, 1539.9946289063, -1604.1293945313, 17.328466415405, 0.000000, 0.000000, 89.291381835938); // CreateObject(979, 1559.7534179688, -1589.3540039063, 29.559103012085, 0.000000, 0.000000, 298.51989746094); // CreateObject(979, 1556.6473388672, -1581.4417724609, 29.724687576294, 0.000000, 1.187744140625, 284.26208496094); // CreateObject(979, 1550.5330810547, -1548.4899902344, 30.835649490356, 0.000000, 3.3097839355469, 288.23107910156); // CreateObject(979, 1554.63671875, -1573.0185546875, 29.871873855591, 0.000000, 1.1810302734375, 283.06823730469); // CreateObject(979, 1552.69140625, -1564.5634765625, 30.046657562256, 0.000000, 1.1810302734375, 283.06823730469); // CreateObject(979, 1551.822265625, -1556.8857421875, 30.460618972778, 0.000000, 3.306884765625, 270.41198730469); // CreateObject(979, 1563.5993652344, -1596.3958740234, 29.559103012085, 0.000000, 0.000000, 298.51501464844); // CreateObject(979, 1567.5197753906, -1603.6208496094, 29.559103012085, 0.000000, 0.000000, 298.51501464844); // CreateObject(979, 1571.6529541016, -1611.2420654297, 29.559103012085, 0.000000, 0.000000, 298.51501464844); // CreateObject(979, 1579.8107910156, -1625.9417724609, 29.559103012085, 0.000000, 0.000000, 298.99493408203); // CreateObject(979, 1575.7841796875, -1618.66796875, 29.559103012085, 0.000000, 0.000000, 298.99291992188); // CreateObject(979, 1579.810546875, -1625.94140625, 29.559103012085, 0.000000, 0.000000, 298.99291992188); // CreateObject(979, 1581.5343017578, -1629.1431884766, 29.559103012085, 0.000000, 0.000000, 298.99291992188); // CreateObject(979, 1583.7958984375, -1637.8797607422, 29.559103012085, 0.000000, 0.000000, 270.25915527344); // CreateObject(979, 1583.8505859375, -1646.1340332031, 29.559103012085, 0.000000, 0.000000, 270.25817871094); // CreateObject(979, 1583.8785400391, -1654.0242919922, 29.559103012085, 0.000000, 0.000000, 270.25817871094); // CreateObject(979, 1583.8845214844, -1661.5329589844, 29.559103012085, 0.000000, 0.000000, 270.65808105469); // CreateObject(979, 1583.9544677734, -1667.8892822266, 29.559103012085, 0.000000, 0.000000, 270.65368652344); // CreateObject(979, 1584.1096191406, -1674.7149658203, 29.559103012085, 0.000000, 0.000000, 271.45349121094); // CreateObject(979, 1584.2209472656, -1683.3969726563, 29.559103012085, 0.000000, 0.000000, 270.19787597656); // CreateObject(979, 1584.3444824219, -1695.2801513672, 29.559103012085, 0.000000, 0.000000, 270.65368652344); // CreateObject(979, 1584.3038330078, -1692.32421875, 29.559103012085, 0.000000, 0.000000, 270.65368652344); // CreateObject(992, 1541.3664550781, -1602.6706542969, 17.328466415405, 0.000000, 0.000000, 359.76635742188); // CreateObject(992, 1544.7313232422, -1602.6824951172, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1548.0686035156, -1602.7275390625, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1551.193359375, -1602.7412109375, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1554.4343261719, -1602.7883300781, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1557.7386474609, -1602.7469482422, 17.328466415405, 0.000000, 0.000000, 359.5234375); // CreateObject(992, 1564.3651123047, -1602.7023925781, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1561.0731201172, -1602.7313232422, 17.328466415405, 0.000000, 0.000000, 359.52209472656); // CreateObject(992, 1578.9465332031, -1638.2583007813, 20.363935470581, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1582.2069091797, -1638.2283935547, 20.363935470581, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1585.4725341797, -1638.2357177734, 20.363935470581, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1588.0073242188, -1638.2331542969, 20.363935470581, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1590.4339599609, -1638.2492675781, 20.363935470581, 0.000000, 0.000000, 359.60339355469); // CreateObject(992, 1593.216796875, -1638.2436523438, 20.363935470581, 0.000000, 0.000000, 359.59899902344); // CreateObject(992, 1595.9976806641, -1638.2023925781, 20.363935470581, 0.000000, 0.000000, 359.59899902344); // CreateObject(992, 1599.2703857422, -1638.2061767578, 20.363935470581, 0.000000, 0.000000, 359.59899902344); // CreateObject(992, 1601.9759521484, -1638.2283935547, 20.363935470581, 0.000000, 0.000000, 359.59899902344); // CreateObject(992, 1603.39453125, -1639.5941162109, 20.363935470581, 0.000000, 0.000000, 270.84582519531); // CreateObject(992, 1603.4732666016, -1642.6701660156, 20.363935470581, 0.000000, 0.000000, 270.84045410156); // CreateObject(992, 1567.7451171875, -1602.69921875, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1571.1203613281, -1602.6903076172, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1574.4753417969, -1602.6784667969, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1577.6021728516, -1602.7119140625, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1583.8034667969, -1602.6842041016, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1586.9809570313, -1602.7160644531, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1590.3233642578, -1602.7299804688, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1593.5430908203, -1602.7705078125, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1596.7789306641, -1602.7856445313, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1600.0845947266, -1602.8022460938, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1603.2385253906, -1602.8436279297, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1606.265625, -1602.8676757813, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1580.8768310547, -1602.724609375, 17.328466415405, 0.000000, 0.000000, 359.20349121094); // CreateObject(992, 1607.662109375, -1604.2702636719, 17.328466415405, 0.000000, 0.000000, 269.74682617188); // CreateObject(992, 1607.6578369141, -1607.6166992188, 17.328466415405, 0.000000, 0.000000, 269.74182128906); // CreateObject(992, 1607.6428222656, -1610.9503173828, 17.328466415405, 0.000000, 0.000000, 269.74182128906); // CreateObject(992, 1607.6528320313, -1613.9084472656, 17.328466415405, 0.000000, 0.000000, 269.74182128906); // CreateObject(992, 1607.6444091797, -1617.1719970703, 17.328466415405, 0.000000, 0.000000, 269.74182128906); // CreateObject(992, 1607.6158447266, -1620.4901123047, 17.328466415405, 0.000000, 0.000000, 269.74182128906); // CreateObject(992, 1607.5994873047, -1623.6505126953, 17.328466415405, 0.000000, 0.000000, 269.74182128906); // CreateObject(992, 1607.6090087891, -1626.2860107422, 17.328466415405, 0.000000, 0.000000, 270.38171386719); // CreateObject(992, 1607.6455078125, -1629.1337890625, 17.328466415405, 0.000000, 0.000000, 270.37902832031); // CreateObject(992, 1607.6710205078, -1631.8697509766, 17.328466415405, 0.000000, 0.000000, 270.37902832031); // CreateObject(992, 1607.6870117188, -1634.5895996094, 17.328466415405, 0.000000, 0.000000, 270.37902832031); // CreateObject(992, 1607.6490478516, -1636.3283691406, 17.328466415405, 0.000000, 0.000000, 270.37902832031); // CreateObject(992, 1606.2828369141, -1637.7091064453, 17.328466415405, 0.000000, 0.000000, 179.48181152344); // CreateObject(992, 1605.4871826172, -1637.7000732422, 17.328466415405, 0.000000, 0.000000, 179.47814941406); // CreateObject(992, 1576.1125488281, -1637.572265625, 28.855855941772, 0.000000, 0.000000, 359.06762695313); // CreateObject(992, 1572.7996826172, -1637.5067138672, 28.892652511597, 0.000000, 0.000000, 359.06616210938); // CreateObject(992, 1569.5864257813, -1637.4787597656, 28.892652511597, 0.000000, 0.000000, 359.06616210938); // CreateObject(992, 1568.6024169922, -1637.5124511719, 28.892652511597, 0.000000, 0.000000, 359.06616210938); // CreateObject(992, 1565.3038330078, -1637.4641113281, 28.892652511597, 0.000000, 0.000000, 359.06616210938); // CreateObject(992, 1561.9453125, -1637.4799804688, 28.892652511597, 0.000000, 0.000000, 0.0260009765625); // CreateObject(992, 1558.6673583984, -1637.5745849609, 28.892652511597, 0.000000, 0.000000, 2.9819641113281); // CreateObject(992, 1555.3828125, -1637.6108398438, 28.892652511597, 0.000000, 0.000000, 1.3019714355469); // CreateObject(992, 1544.3580322266, -1637.5296630859, 28.892652511597, 0.000000, 0.000000, 359.54608154297); // CreateObject(992, 1546.2033691406, -1637.5797119141, 28.892652511597, 0.000000, 0.000000, 359.06616210938); // CreateObject(992, 1549.0638427734, -1637.6313476563, 28.874254226685, 0.000000, 0.000000, 359.06616210938); // CreateObject(992, 1552.1752929688, -1637.6456298828, 28.874254226685, 0.000000, 0.000000, 359.86602783203); // CreateObject(992, 1577.5052490234, -1638.9881591797, 28.855855941772, 0.000000, 0.000000, 269.65338134766); // CreateObject(983, 1587.8184814453, -1638.3840332031, 16.281318664551, 0.000000, 0.000000, 270.22277832031); // CreateObject(983, 1589.4161376953, -1638.3002929688, 16.272119522095, 0.000000, 0.000000, 271.44000244141); // CreateObject(2954, 1583.2589111328, -1637.9632568359, 12.390459060669, 0.000000, 0.000000, 89.506164550781); // CreateObject(2954, 1582.4423828125, -1637.9118652344, 12.390459060669, 0.000000, 0.000000, 87.504119873047); // CreateObject(983, 1580.9549560547, -1638.1181640625, 15.057734489441, 0.000000, 0.000000, 270.2197265625); // CreateObject(984, 1565.1623535156, -1692.3387451172, 5.8033075332642, 0.000000, 0.000000, 0.000000); // CreateObject(984, 1565.1623535156, -1692.3387451172, 5.8033075332642, 0.000000, 0.000000, 0.000000); // //End of objects LSPD //Begin of objects ASGH CreateObject(969, 1132.8083496094, -1292.5756835938, 12.673155784607, 0.000000, 359.79504394531, 0.2650146484375); // CreateObject(993, 1143.0994873047, -1292.8602294922, 13.28113079071, 0.000000, 90, 0.000000); // CreateObject(993, 1145.4829101563, -1292.8638916016, 13.28113079071, 0.000000, 90, 0.000000); // CreateObject(993, 1136.4616699219, -1292.8790283203, 17.40606880188, 0.000000, 0.000000, 0.000000); // CreateObject(993, 1147.8635253906, -1292.8675537109, 13.28113079071, 0.000000, 90, 0.000000); // CreateObject(993, 1150.2243652344, -1292.8726806641, 13.28113079071, 0.000000, 90, 0.000000); // CreateObject(987, 1137.7368164063, -1369.4677734375, 12.984375, 0.000000, 0.000000, 0.000000); // CreateObject(987, 1082.6147460938, -1369.3233642578, 12.784378051758, 0.000000, 0.000000, 0.000000); // CreateObject(7096, 1144.833984375, -1336.1083984375, 18.954048156738, 0.000000, 0.000000, 0.000000); // CreateObject(3361, 1154.265625, -1348.95703125, 25.903966903687, 0.000000, 0.000000, 267.96752929688); // CreateObject(3361, 1154.3999023438, -1345.2712402344, 28.353929519653, 0.000000, 0.000000, 267.96752929688); // CreateObject(1472, 1138.763671875, -1340.2032470703, 13.53182220459, 0.000000, 0.000000, 359.71936035156); // CreateObject(1472, 1140.2578125, -1340.208984375, 13.53182220459, 0.000000, 0.000000, 359.70886230469); // CreateObject(1472, 1138.6768798828, -1341.4532470703, 12.706834793091, 0.000000, 0.000000, 359.71435546875); // CreateObject(1472, 1140.1796875, -1341.4470214844, 12.706834793091, 0.000000, 0.000000, 359.71435546875); // CreateObject(3361, 1147.0395507813, -1345.2819824219, 22.829013824463, 0.000000, 0.000000, 89.317565917969); // CreateObject(1472, 1149.1962890625, -1349.4364013672, 25.231811523438, 0.000000, 0.000000, 272.11486816406); // CreateObject(1423, 1147.1038818359, -1350.1859130859, 25.616077423096, 0.000000, 0.000000, 0.000000); // CreateObject(1423, 1146.0570068359, -1349.107421875, 25.616077423096, 0.000000, 0.000000, 269.95501708984); // CreateObject(1423, 1149.2169189453, -1350.1865234375, 25.616077423096, 0.000000, 0.000000, 0.000000); // CreateObject(1423, 1149.2427978516, -1348.5576171875, 25.616077423096, 0.000000, 0.000000, 0.000000); // CreateObject(1423, 1138.1262207031, -1331.7241210938, 17.141206741333, 0.000000, 0.000000, 269.95056152344); // CreateObject(1423, 1139.2008056641, -1330.6879882813, 17.141206741333, 0.000000, 0.000000, 179.09564208984); // CreateObject(1423, 1147.1248779297, -1330.7557373047, 19.241174697876, 0.000000, 0.000000, 179.09362792969); // CreateObject(1423, 1148.1677246094, -1331.8485107422, 19.241174697876, 0.000000, 0.000000, 89.533630371094); // CreateObject(1423, 1146.0941162109, -1340.6552734375, 21.491140365601, 0.000000, 0.000000, 89.533081054688); // CreateObject(1423, 1146.1053466797, -1339.6571044922, 21.491140365601, 0.000000, 0.000000, 89.533081054688); // //End of objects ASGH //Begin vehicles LSPD AddStaticVehicle(596,1601.6877,-1683.8407,5.6109,90.7161,0,1); // AddStaticVehicle(596,1601.9219,-1688.1471,5.6117,89.4029,0,1); // AddStaticVehicle(596,1601.7927,-1692.0123,5.6122,90.0989,0,1); // AddStaticVehicle(597,1601.8553,-1696.0702,5.6588,90.5135,0,1); // AddStaticVehicle(597,1601.9396,-1700.2095,5.6601,89.8509,0,1); // AddStaticVehicle(597,1602.0302,-1704.2244,5.6588,90.0884,0,1); // AddStaticVehicle(597,1595.4158,-1710.7772,5.6597,359.8439,0,1); // AddStaticVehicle(597,1591.5116,-1710.7424,5.6597,359.4803,0,1); // AddStaticVehicle(596,1587.3925,-1710.8125,5.6120,359.4149,0,1); // AddStaticVehicle(596,1583.4155,-1710.7761,5.6119,358.7185,0,1); // AddStaticVehicle(523,1565.7950,-1692.8601,5.4582,358.3842,0,0); // AddStaticVehicle(523,1565.7601,-1696.3082,5.4615,358.0502,0,0); // AddStaticVehicle(523,1567.6995,-1692.8621,5.4612,358.9832,0,0); // AddStaticVehicle(523,1567.7041,-1696.1992,5.4613,0.6332,0,0); // AddStaticVehicle(451,1578.5475,-1711.0483,5.5973,359.6665,0,0); // AddStaticVehicle(451,1574.3998,-1710.9980,5.5972,1.0701,0,0); // AddStaticVehicle(451,1570.2787,-1710.9705,5.5966,359.4144,0,0); // AddStaticVehicle(451,1558.9548,-1711.1479,5.5970,1.4684,0,0); // AddStaticVehicle(599,1545.4067,-1684.5061,6.0835,90.2943,0,1); // AddStaticVehicle(599,1545.4569,-1680.1196,6.0871,89.7843,0,1); // AddStaticVehicle(599,1545.3633,-1676.1185,6.0796,90.9319,0,1); // AddStaticVehicle(599,1545.2803,-1672.0519,6.0813,90.4071,0,1); // AddStaticVehicle(599,1545.2532,-1667.8392,6.0798,91.1327,0,1); // AddStaticVehicle(427,1538.7035,-1645.2781,6.0226,180.0642,0,1); // AddStaticVehicle(427,1534.7512,-1645.2623,6.0225,180.7932,0,1); // //End vehicles LSPD //Begin Taxi vehicles AddStaticVehicle(420,1803.2968,-1903.1368,13.1819,58.1856,6,1); // taxi car AddStaticVehicle(420,1803.4874,-1907.8171,13.1793,58.6982,6,1); // taxi car AddStaticVehicle(420,1803.4222,-1912.1052,13.1782,56.3220,6,1); // taxi car AddStaticVehicle(420,1803.5006,-1916.3563,13.1752,56.0570,6,1); // taxi car AddStaticVehicle(420,1803.4369,-1920.6563,13.1730,55.2837,6,1); // taxi car AddStaticVehicle(420,1803.4419,-1925.2837,13.1734,53.9386,6,1); // taxi car AddStaticVehicle(420,1803.4254,-1929.9077,13.1691,53.0108,6,1); // taxi car AddStaticVehicle(438,1779.7307,-1932.0176,13.3897,359.8044,6,76); // taxi car AddStaticVehicle(438,1776.6721,-1932.0297,13.3916,0.5288,6,76); // taxi car AddStaticVehicle(438,1783.0344,-1932.0239,13.3896,358.8206,6,76); // taxi car AddStaticVehicle(438,1786.5560,-1931.9752,13.3898,359.3280,6,76); // taxi car AddStaticVehicle(409,1775.9010,-1917.3226,13.1863,0.4712,6,76); // taxi limo AddStaticVehicle(409,1775.7994,-1907.0815,13.1955,0.5659,6,76); // taxi limo //End Taxi vehicles //Begin Grove Street vehicles AddStaticVehicle(412,2482.5500,-1653.2435,13.2250,90.4197,68,68); // grove street car AddStaticVehicle(419,2473.3877,-1688.9771,13.3087,359.5094,68,68); // grove street car AddStaticVehicle(536,2500.3552,-1655.4004,13.1685,70.4170,68,68); // grove street car AddStaticVehicle(579,2509.8401,-1672.5239,13.3413,348.5769,68,68); // grove street car AddStaticVehicle(567,2497.3411,-1683.6567,13.2521,280.5439,68,68); // grove street car AddStaticVehicle(560,2489.1619,-1684.0393,13.1232,265.3852,68,68); // grove street car AddStaticVehicle(560,2504.8376,-1680.0217,13.1653,315.2754,68,68); // grove street car AddStaticVehicle(581,2508.4563,-1665.8461,13.0007,10.6026,68,68); // grove street car //End Grove Street vehicles //Begin City Hall vehicles AddStaticVehicle(409,1405.2648,-1790.0087,13.3469,89.1324,1,1); // limo mayor car AddStaticVehicle(579,1405.3400,-1800.2090,13.4809,90.7153,0,0); // hummer zwart mayor car AddStaticVehicle(579,1405.3580,-1803.8235,13.4805,90.9169,0,0); // hummer zwart mayor car AddStaticVehicle(579,1405.0526,-1780.3987,13.4803,90.2702,0,0); // hummer zwart mayor car AddStaticVehicle(579,1405.0635,-1776.7855,13.4791,90.9625,0,0); // hummer zwart mayor car //End City Hall vehicles //Begin All Saints General Hospital vehicles AddStaticVehicle(416,1181.0697,-1308.6515,13.8257,270.1522,1,3); // ambulance car AddStaticVehicle(416,1180.9814,-1338.9897,13.8915,272.3482,1,3); // ambulance car AddStaticVehicle(563,1162.0592,-1307.6691,32.1956,93.3525,1,6); // helikopter ziekenhuis //End All Saints General Hospital vehicles return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid,-1578.4615,877.7648,47.2188); // Waar je de speler neer zet SetPlayerCameraPos(playerid,-1581.4615,877.7648,47.2191); //Waar je de camera neer zet, gewoonlijk voor het gezicht van de speler :P SetPlayerCameraLookAt(playerid,-1578.4615,877.7648,47.2188); //Waar de camera naar toe moet kijken. Deze positie kan gewoon hetzelfde zijn als waar je de speler neer zet. SetPlayerFacingAngle(playerid, 95.0000); //Hoeveel graden de speler is gedraait return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnPlayerConnect(playerid) //msg when at begin screen { SendClientMessage(playerid,0xFFFF00AA,"Welcome to Nameless Roleplay, Enjoy your stay!"); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) //msg when you kill someone { SendClientMessage(killerid,0xFFFF00AA,"You killed a innocent citizen, you better run fast or the cops will notice!"); return 1; } return 0; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/tplspd", cmdtext, true, 10) == 0) { if(IsPlayerAdmin(playerid)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1554.7692,-1676.1294,16.1953); //teleport to the Los santos police department SendClientMessage(playerid, 0xFFFF00AA, "You have been teleported to the 'Los Santos Police Department'."); return 1; } } if (strcmp("/tphospital", cmdtext, true, 10) == 0) { if(IsPlayerAdmin(playerid)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1172.6040,-1325.2792,15.4032); //teleport to the hospital SendClientMessage(playerid, 0xFFFF00AA, "You have been teleported to the 'All Saints General Hospital'."); return 1; } } if (strcmp("/tpcityhall", cmdtext, true, 10) == 0) { if(IsPlayerAdmin(playerid)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1481.0189,-1770.3466,18.7958); //teleport to the city hall SendClientMessage(playerid, 0xFFFF00AA, "You have been teleported to the 'City Hall'."); return 1; } } if (strcmp("/tpunitystation", cmdtext, true, 10) == 0) { if(IsPlayerAdmin(playerid)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1743.6516,-1864.0204,13.5744); //teleport to unity station SendClientMessage(playerid, 0xFFFF00AA, "You have been teleported to 'Unity Station'."); return 1; } } if (strcmp("/help", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xFFFF00AA,"COMMANDS:"); SendClientMessage(playerid,0xFFFF00AA,"There are currently no commands."); SendClientMessage(playerid,0xFFFF00AA," "); SendClientMessage(playerid,0xFFFF00AA," "); SendClientMessage(playerid,0xFFFF00AA," "); SendClientMessage(playerid,0xFFFF00AA," "); SendClientMessage(playerid,0xFFFF00AA," "); SendClientMessage(playerid,0xFFFF00AA,"For more information visit: www.Nameless-RP.co.cc"); return 1; } if(strcmp("/takejobcop", cmdtext, true) == 0) { if(IsPlayerAdmin(playerid)) { SendClientMessage(playerid, 0xFFFF00AA, "You are now an offcial police member"); SendClientMessage(playerid, 0xFFFF00AA, "Typ /copcmds for the commands"); gTeam[playerid] = TEAM_COP0; SetPlayerColor(playerid, 0xCAEBFFFF); SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1553.2588,-1676.1017,16.1953); GivePlayerWeapon(playerid, 41, 200); GivePlayerWeapon(playerid, 3, 1); SetPlayerSkin(playerid, 280); new playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); dini_IntSet("Cop.txt", (playername), gTeam[playerid]); return 1; } } return 0; } public OnPlayerInfoChange(playerid) { return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } Sorry van de lange code pastebin doet bij mij nogal raar. Ik hoop dat iemand mij kan helpen. Bewerkt: 7 oktober 2009 door Ixecube Reageren
mosweg Geplaatst: 7 oktober 2009 Rapport Geplaatst: 7 oktober 2009 Eigenlijk vraag je om een hele faction sript te maken met alle fucties, Die kun je beter van forum.sa-mp afhalen. of zelf maken. Dit topic gaat nu over een simpele faction in je server plaatsen, Ook is het nergens nodig om een hele lange Godfather code te posten want we hebben er niks aan en het vult zowat de hele pagina. Bij de codes die ik je had gegeven had ik je ook verteld wat er gebruikt werd. Bij die link van comuniceren met files staat ook wel de oplosing. We proberen daar iets op te slaan. Die fucties zitten niet in a_samp. Daarom moet je bovenaan in plaats van: #include <a_samp> #include <a_samp> #include <Dini> erin zetten Als het goed is zal dat het wel fixen Reageren
Ixecube Geplaatst: 8 oktober 2009 Auteur Rapport Geplaatst: 8 oktober 2009 Dit is geen godfather edit.. deze heb ik gewoon van de sa-mp site afgehaald, nogmaals sorry van de lange script. Ik ga nog wel even kijken op het sa-mp forum voor de faction script. Bedankt voor al jullie hulp Reageren
mosweg Geplaatst: 9 oktober 2009 Rapport Geplaatst: 9 oktober 2009 (bewerkt) Dat met dat lange code en godfather was over Rickyboy30 die had dat ervoor gepost. Als het goed is kun je met die code en alle probleem oplosingen van net wel een goede faction script maken. Je kunt alles zelf aanpassen met de dingen die je er in wilt hebben. Ik heb het nog even goed gezet en op errors gecontroleerd, Dit is de code voor een politie faction die opslaat met rangen: Je kunt zelf wat aanpassen maar nu kan je van rang wiselen met een command #include <a_samp> #include <Dini> #define COLOR_RED1 0xFF0000AA #define TEAM_COP0 1 #define TEAM_COP1 2 static gTeam[MAX_PLAYERS]; new playername[MAX_PLAYER_NAME]; new job; public OnPlayerCommandText(playerid, cmdtext[]) { GetPlayerName(playerid, playername, sizeof(playername)); if(strcmp(cmdtext, "/takejobcop", true) == 0) { SendClientMessage(playerid, COLOR_RED1, "You are now an offcial police member"); SendClientMessage(playerid, COLOR_RED1, "Typ /copcmds for the commands"); gTeam[playerid] = TEAM_COP0; SetPlayerColor(playerid, 0xCAEBFFFF); SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1553.2588,-1676.1017,16.1953); GivePlayerWeapon(playerid, 41, 200); GivePlayerWeapon(playerid, 3, 1); SetPlayerSkin(playerid, 280); dini_IntSet("/Teams/Job/Cop.txt", (playername), gTeam[playerid]); return 1; } if(strcmp(cmdtext, "/takejobcop2", true) == 0) { SendClientMessage(playerid, COLOR_RED1, "You are now an offcial police member"); SendClientMessage(playerid, COLOR_RED1, "Typ /copcmds for the commands"); gTeam[playerid] = TEAM_COP1; SetPlayerColor(playerid, 0xCAEBFFFF); SetPlayerInterior(playerid,0); SetPlayerPos(playerid, 1553.2588,-1676.1017,16.1953); GivePlayerWeapon(playerid, 41, 200); GivePlayerWeapon(playerid, 3, 1); SetPlayerSkin(playerid, 280); dini_IntSet("/Teams/Job/Cop.txt", (playername), gTeam[playerid]); return 1; } if(strcmp(cmdtext, "/jobcop", true) == 0) { job = dini_Int("/Teams/Job/Cop.txt", (playername)); if(job == TEAM_COP0) { gTeam[playerid] = TEAM_COP0; SetPlayerColor(playerid, 0xCAEBFFFF); SetPlayerPos(playerid, 1553.2588,-1676.1017,16.1953); GivePlayerWeapon(playerid, 41, 200); GivePlayerWeapon(playerid, 3, 1); SetPlayerSkin(playerid, 280); } if(job == TEAM_COP1) { gTeam[playerid] = TEAM_COP1; SetPlayerColor(playerid, 0x76ACFEFF); SetPlayerPos(playerid, 1553.2588,-1676.1017,16.1953); GivePlayerWeapon(playerid, 41, 200); GivePlayerWeapon(playerid, 24, 50); GivePlayerWeapon(playerid, 3, 1); SetPlayerSkin(playerid, 280); } return 1; } return 1; } Bewerkt: 9 oktober 2009 door mosweg Reageren
Recommended Posts
Een reactie plaatsen
Je kan nu een reactie plaatsen en pas achteraf registreren. Als je al lid bent, log eerst in om met je eigen account een reactie te plaatsen.