Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //includes
- #include <a_samp>
- #include <DOF2>
- #include <Dini>
- #include <Core>
- #include <sscanf>
- #include <utils>
- #include <cpstream>
- #include <file>
- #include <float>
- #include <time>
- #if defined FILTERSCRIPT
- //news
- static gTeam[MAX_PLAYERS];
- #pragma tabsize 0
- new PlayerInfo[MAX_PLAYERS][pInfo];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new string[256];
- new playermoney;
- new sendername[MAX_PLAYER_NAME];
- new giveplayer[MAX_PLAYER_NAME];
- new playername[MAX_PLAYER_NAME];
- new cmd[256];
- new tmp[256];
- new giveplayerid, moneys, idx;
- cmd = strtok(cmdtext, idx);
- //=====================================================//
- if(strcmp(cmd, "/lider", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, 0xFF005499, "USO: /lider [playerid/Parte-do-Nick] [Number(1-14)]");
- return 1;
- }
- new para1;
- new level;
- para1 = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- level = strval(tmp);
- if(level > 18 || level < 0) { SendClientMessage(playerid, 0x00559999, " Números entre 1 e 18"); return 1; }
- if (PlayerInfo[playerid][pAdmin] >= 4)
- {
- if(IsPlayerConnected(para1))
- {
- if(para1 != INVALID_PLAYER_ID)
- {
- GetPlayerName(para1, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[para1][pLeader] = level;
- format(string, sizeof(string), "* %s lhe deu o direito administração profissional, digite /rg.", sendername);
- SendClientMessage(para1, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* %s é o novo líder administrativo profissional (%d).", giveplayer,level);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- if(level == 0) { PlayerInfo[para1][pChar] = 0; }
- else if(level == 1) { PlayerInfo[para1][pChar] = 265; gTeam[para1] = 2; } //Police Force
- else if(level == 2) { PlayerInfo[para1][pChar] = 286; gTeam[para1] = 2; } //FBI/ATF
- else if(level == 3) { PlayerInfo[para1][pChar] = 287; gTeam[para1] = 2;} //National Guard
- else if(level == 4) { PlayerInfo[para1][pChar] = 70; gTeam[para1] = 4;} //Fire/Ambulance
- else if(level == 5) { PlayerInfo[para1][pChar] = 104; gTeam[para1] = 5;} //Ballas
- else if(level == 6) { PlayerInfo[para1][pChar] = 270; gTeam[para1] = 5;} //Grove
- else if(level == 17) { PlayerInfo[para1][pChar] = 294; gTeam[para1] = 5;} //Grove
- else if(level == 7) { PlayerInfo[para1][pChar] = 147; gTeam[para1] = 7;} //prefeito
- else if(level == 8) { PlayerInfo[para1][pChar] = 249; gTeam[para1] = 8;} //Hitmans
- else if(level == 9) { PlayerInfo[para1][pChar] = 17; gTeam[para1] = 9;} //News Reporters
- else if(level == 12) { PlayerInfo[para1][pChar] = 108; gTeam[para1] = 5;} //Los vagos
- else if(level == 13) { PlayerInfo[para1][pChar] = 248; gTeam[para1] = 5;} //motoqueiros
- else if(level == 14) { PlayerInfo[para1][pChar] = 112; gTeam[para1] = 2; } //PR
- else if(level == 15) { PlayerInfo[para1][pChar] = 115; gTeam[para1] = 5; } //Aztecas
- else if(level == 16) { PlayerInfo[para1][pChar] = 117; gTeam[para1] = 5; } //Mafia
- else if(level == 18) { PlayerInfo[para1][pChar] = 291; gTeam[para1] = 5; } //Mafia
- PlayerInfo[para1][pLeader] = level;
- PlayerInfo[para1][pMember] = level;
- PlayerInfo[para1][pRank] = 6;
- PlayerInfo[para1][pTeam] = gTeam[para1];
- PlayerInfo[para1][pModel] = PlayerInfo[para1][pChar];
- SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
- }
- }//not connected
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Sem Autorização.");
- }
- }
- return 1;
- }
- return 0;
- }
- 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 OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment