Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////////
- ////////////// SISTEMA DE PATENTES POR IZAQUE COSTA (T)akelot///////////////////
- ////////////////////////////////30\08\2015//////////////////////////////////////
- //////////////////////////198.15.64.3:7789//////////////////////////////////////
- //////////////////////////198.15.64.3:7789//////////////////////////////////////
- ///////////////////////////////////////////////////////////////////A/////////////
- #include < a_samp >
- #include < zcmd >
- #define Patente_list_dialog 4400
- new PlayerText:PatenteDraw[MAX_PLAYERS], Text3D:Patente[MAX_PLAYERS],PT[MAX_PLAYERS];
- public OnFilterScriptInit() { return print("- Filterscript Patentes Loaded"); }
- public OnFilterScriptExit() { return print("- Filterscript Patentes Off"); }
- public OnPlayerConnect(playerid) {
- //==========================================================================
- PatenteDraw[playerid] = CreatePlayerTextDraw(playerid,490.000000, 130.000000, "loading...");
- PlayerTextDrawBackgroundColor(playerid,PatenteDraw[playerid], 255);
- PlayerTextDrawFont(playerid,PatenteDraw[playerid], 3);
- PlayerTextDrawLetterSize(playerid,PatenteDraw[playerid], 0.559999, 1.700000);
- PlayerTextDrawColor(playerid,PatenteDraw[playerid], -1);
- PlayerTextDrawSetOutline(playerid,PatenteDraw[playerid], 1);
- PlayerTextDrawSetProportional(playerid,PatenteDraw[playerid], 1);
- //==========================================================================
- SetTimerEx("UpdatePatente", 2000, true, "i", playerid);
- Patente[playerid] = Create3DTextLabel(PT, -1, 30.0, 40.0, 50.0, 40.0, 0, 0);
- return 1;
- }
- public OnPlayerDisconnect(playerid) { return Delete3DTextLabel(Patente[playerid]); }
- public OnPlayerSpawn(playerid) {
- new
- String[21],
- Score = GetPlayerScore(playerid)
- ;
- if(Score <= 100) { String = "Player beginner"; }
- else if(Score <= 200) { String = "Player median"; }
- else if(Score <= 300) { String = "Player good"; }
- else if(Score <= 400) { String = "Player advanced"; }
- else if(Score <= 500) { String = "Player famous"; }
- else if(Score <= 600) { String = "Player amateur"; }
- else if(Score <= 700) { String = "Player professional"; }
- else if(Score <= 800) { String = "Player addict"; }
- else if(Score >= 1000) { String = "Player Master"; }
- Attach3DTextLabelToPlayer(Patente[playerid], playerid, 0.0, 0.0, 0.5);
- PlayerTextDrawShowForPlayer(playerid, PlayerText:PatenteDraw[playerid]);
- return 1;
- }
- command(patentes, playerid, params[]) {
- new Formmartando[800];
- if (IsPlayerConnected(playerid)) {
- format(Formmartando, 800, "%s{FF0000}~~~~~~~~[ {00FFFF}PATENTE LIST {FF0000}]~~~~~~~~", Formmartando);
- format(Formmartando, 800, "%s\n\n", Formmartando);
- format(Formmartando, 800, "%s1- {00FFFF}Patente: {FFFFFF}beginner\t{00FFFF}=\t{FFFFFF}100 {00FFFF}scores\n", Formmartando);
- format(Formmartando, 800, "%s2- {00FFFF}Patente: {FFFFFF}median\t{00FFFF}=\t{FFFFFF}200 {00FFFF}scores\n", Formmartando);
- format(Formmartando, 800, "%s3- {00FFFF}Patente: {FFFFFF}good\t{00FFFF}=\t{FFFFFF}300 {00FFFF}scores\n", Formmartando);
- format(Formmartando, 800, "%s4- {00FFFF}Patente: {FFFFFF}advanced\t{00FFFF}=\t{FFFFFF}400 {00FFFF}scores\n", Formmartando);
- format(Formmartando, 800, "%s5- {00FFFF}Patente: {FFFFFF}famous\t{00FFFF}=\t{FFFFFF}500 {00FFFF}scores\n", Formmartando);
- format(Formmartando, 800, "%s6- {00FFFF}Patente: {FFFFFF}amateur\t{00FFFF}=\t{FFFFFF}600 {00FFFF}scores\n", Formmartando);
- format(Formmartando, 800, "%s7- {00FFFF}Patente: {FFFFFF}professional\t{00FFFF}=\t{FFFFFF}700 {00FFFF}scores\n", Formmartando);
- format(Formmartando, 800, "%s8- {00FFFF}Patente: {FFFFFF}addict\t{00FFFF}=\t{FFFFFF}800 {00FFFF}scores\n", Formmartando);
- format(Formmartando, 800, "%s9- {00FFFF}Patente: {FFFFFF}Master\t{00FFFF}=\t{FFFFFF}1000 {00FFFF}scores\n", Formmartando);
- ShowPlayerDialog(playerid, Patente_list_dialog, DIALOG_STYLE_LIST, "{FF0000}Patentes", Formmartando, "OK", "");
- }
- return 1;
- }
- forward UpdatePatente(playerid); public UpdatePatente(playerid) {
- new Score = GetPlayerScore(playerid);
- if(0 < Score < 100) PlayerTextDrawSetString(playerid, PatenteDraw[playerid], "~p~beginner");
- else if(100 < Score < 200) PlayerTextDrawSetString(playerid, PatenteDraw[playerid], "~p~median");
- else if(200 < Score < 300) PlayerTextDrawSetString(playerid, PatenteDraw[playerid], "~p~good");
- else if(300 < Score < 400) PlayerTextDrawSetString(playerid, PatenteDraw[playerid], "~p~advanced");
- else if(400 < Score < 500) PlayerTextDrawSetString(playerid, PatenteDraw[playerid], "~p~famous");
- else if(500 < Score < 600) PlayerTextDrawSetString(playerid, PatenteDraw[playerid], "~p~amateur");
- else if(600 < Score < 700) PlayerTextDrawSetString(playerid, PatenteDraw[playerid], "~p~professional");
- else if(700 < Score < 800) PlayerTextDrawSetString(playerid, PatenteDraw[playerid], "~p~addict");
- else if(Score > 1000) PlayerTextDrawSetString(playerid, PatenteDraw[playerid], "~p~master");
- return 1;
- }
- stock PegarNome(playerid) {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- return name;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement