Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*------------------------------------------------------------------------------
- By Maurício Moraes
- ------------------------------------------------------------------------------*/
- #include a_samp
- #include DOF2
- #include zcmd
- #include sscanf2
- #define DestinoDasContas "Contas/%s.ini"
- #define DestinoDasPersonagens "Personagens/%s.ini"
- #define CallBack::%0(%1) forward %0(%1); public %0(%1)
- enum
- {
- DIALOG_REGISTRO,
- DIALOG_LOGIN,
- CREATACCOUNT,
- CREATACCOUNT1,
- CREATACCOUNT2,
- CREATACCOUNT3,
- CREATSEXO
- }
- enum TXD
- {
- Text:CHARGE_ACCOUNT,
- PlayerText:information[8],
- PlayerText:TextTito[7]
- }
- static TextDrawInt[MAX_PLAYERS][TXD];
- enum Per
- {
- Personagens[4],
- pAdmin
- }
- static CharInfo[MAX_PLAYERS][Per];
- enum pInfo
- {
- Money,
- Level,
- Skin,
- Sexo,
- Float:x,
- Float:y,
- Float:z,
- Float:Angle
- }
- static PlayerInfo[MAX_PLAYERS][pInfo];
- static bool:logged[MAX_PLAYERS] = {false, ...}, ClicadoEm[MAX_PLAYERS],
- bool:loggedAduty[MAX_PLAYERS] = {false, ...};
- main()
- {
- print(" By Maurício Moraes");
- }
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- static i;
- for(i = GetMaxPlayers()-1; i > -1; --i)
- {
- if(IsPlayerConnected(i))
- {
- SaveFiles(i);
- }
- }
- DOF2_Exit();
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- loggedAduty[playerid] = false;
- CarChars(playerid);
- TextDrawInt[playerid][CHARGE_ACCOUNT] = TextDrawCreate(180.000000, 340.000000, "__carregando dados da conta ...");
- TextDrawBackgroundColor(TextDrawInt[playerid][CHARGE_ACCOUNT], 255);
- TextDrawFont(TextDrawInt[playerid][CHARGE_ACCOUNT], 1);
- TextDrawLetterSize(TextDrawInt[playerid][CHARGE_ACCOUNT], 0.509999, 1.900000);
- TextDrawColor(TextDrawInt[playerid][CHARGE_ACCOUNT], -1);
- TextDrawSetOutline(TextDrawInt[playerid][CHARGE_ACCOUNT], 0);
- TextDrawSetProportional(TextDrawInt[playerid][CHARGE_ACCOUNT], 1);
- TextDrawSetShadow(TextDrawInt[playerid][CHARGE_ACCOUNT], 1);
- TextDrawUseBox(TextDrawInt[playerid][CHARGE_ACCOUNT], 1);
- TextDrawBoxColor(TextDrawInt[playerid][CHARGE_ACCOUNT], 0x00000066);
- TextDrawTextSize(TextDrawInt[playerid][CHARGE_ACCOUNT], 462.000000, 0.000000);
- TextDrawShowForPlayer(playerid, TextDrawInt[playerid][CHARGE_ACCOUNT]);
- SetTimerEx("ChargeAccount", 5000, false, "i", playerid);
- SetPlayerColor(playerid, -1);
- SetPlayerCameraPos(playerid, 1691.0731, -1470.4502, 100.1112);
- SetPlayerCameraLookAt(playerid, 1691.9696, -1469.9993, 99.7611);
- SetPlayerVirtualWorld(playerid, 3);
- return 1;
- }
- CallBack::ChargeAccount(playerid)
- {
- TextDrawHideForPlayer(playerid, TextDrawInt[playerid][CHARGE_ACCOUNT]);
- static _var[100];
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid) ) ;
- if(DOF2_FileExists(_var))
- {
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Paraná RP", "Você ja possue um registro no paraná rp \n Por favor bote sua senha para poder logar com segurança !", "Logar", "Cancelar");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "Paraná RP", "Seja Bem vindo \n Você não possue uma conta em nosso banco de dados .\n Por favor bote uma senha segura para se registrar !", "Registrar", "Cancelar");
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- SaveFiles(playerid);
- 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[])
- {
- if(logged[playerid] == false)return 0;
- if ( loggedAduty[playerid] == true )
- {
- static _var[300];
- format(_var,sizeof(_var),"%s{FFFFFF}: %s", Name(playerid), text);
- ProxDetector(5.0, playerid, _var,0xFF0080FF,0xFF0080FF,0xFF0080FF,0xFF0080FF,0xFF0080FF);
- }
- else
- {
- static _var[300];
- format(_var,sizeof(_var),"%s: %s", Name(playerid), text);
- ProxDetector(5.0, playerid, _var,0xC0C0C0FF,0xC0C0C0FF,0xC0C0C0FF,0xC0C0C0FF,0xC0C0C0FF);
- }
- return 0;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- 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)
- {
- if(logged[playerid] == false)
- {
- return 0;
- }
- 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)
- {
- if(newkeys == KEY_SUBMISSION)
- {
- SelectTextDraw(playerid, 0xFFFFFFFF);
- }
- 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[])
- {
- if(dialogid == DIALOG_REGISTRO)
- {
- if(response)
- {
- static _var[75];
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid));
- DOF2_CreateFile(_var);
- DOF2_SetString(_var, "Senha", inputtext);
- DOF2_SetString(_var, "Personagem1", "Nao Existente");
- DOF2_SetString(_var, "Personagem2", "Nao Existente");
- DOF2_SetString(_var, "Personagem3", "Nao Existente");
- DOF2_SetString(_var, "Personagem4", "Nao Existente");
- DOF2_SetInt(_var, "Admininistrador", 0);
- DOF2_SaveFile();
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Paraná RP/G", "Você ja possue um registro no paraná rpg \n Por favor bote sua senha para poder logar com segurança !", "Logar", "Cancelar");
- }
- else
- {
- SendClientMessage(playerid, 0xFF2222FF, " Você foi kickado por não querer se registrar !");
- Kick(playerid);
- }
- }
- if(dialogid == DIALOG_LOGIN)
- {
- if(response)
- {
- static str[100];
- format(str, sizeof(str), DestinoDasContas, PlayerName(playerid));
- if ( !strcmp ( inputtext , DOF2_GetString(str,"Senha") , false ))
- {
- CreatText(playerid);
- for(new i = 0; i <15; i ++)
- SendClientMessage(playerid, -1, " ");
- InfoPlayerLogin(playerid);
- RecorLogin(playerid);
- if(CharInfo[playerid][pAdmin] > 0)
- {
- SendClientMessage(playerid, -1,"{9F9FFF}admin{FFFFFF}: Para você entrar no aduty , digite {C0C0C0}/aduty");
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid,0xFF2222FF ," Senha Incorreta , forneça a senha correta por favor!");
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Paraná RP/G", "Você ja possue um registro no paraná rpg \n Por favor bote sua senha para poder logar com segurança !", "Logar", "Cancelar");
- }
- }
- }
- if(dialogid == CREATACCOUNT)
- {
- if(!response) return 1;
- static _var[100], str[100], tito[100];
- format(tito, sizeof(tito), DestinoDasPersonagens, inputtext);
- if(DOF2_FileExists(tito))
- {
- ShowPlayerDialog(playerid, CREATACCOUNT, DIALOG_STYLE_INPUT, "Creat Account", " Olá senhor !\n Informe seu nome para efetuar a criação de seu char !\n Nome já usado !", "Criar", "Cancelar");
- return 1;
- }
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid));
- DOF2_SetString(_var, "Personagem1", inputtext);
- DOF2_SaveFile();
- format(str, sizeof(str), DestinoDasPersonagens, DOF2_GetString(_var, "Personagem1"));
- TitoCreatAccount(playerid, DOF2_GetString(_var, "Personagem1"));
- RecorLogin(playerid);
- ShowPlayerDialog(playerid, CREATSEXO, DIALOG_STYLE_MSGBOX, "Sexo", " Qual seu sexo ??", "Homem", "Mulher");
- return 1;
- }
- if(dialogid == CREATACCOUNT1)
- {
- if(!response) return 1;
- static _var[100], str[100], tito[100];
- format(tito, sizeof(tito), DestinoDasPersonagens, inputtext);
- if(DOF2_FileExists(tito))
- {
- ShowPlayerDialog(playerid, CREATACCOUNT1, DIALOG_STYLE_INPUT, "Creat Account", " Olá senhor !\n Informe seu nome para efetuar a criação de seu char !\n Nome já usado !", "Criar", "Cancelar");
- return 1;
- }
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid));
- DOF2_SetString(_var, "Personagem2", inputtext);
- DOF2_SaveFile();
- format(str, sizeof(str), DestinoDasPersonagens, DOF2_GetString(_var, "Personagem2"));
- TitoCreatAccount(playerid, DOF2_GetString(_var, "Personagem2"));
- RecorLogin(playerid);
- ShowPlayerDialog(playerid, CREATSEXO, DIALOG_STYLE_MSGBOX, "Sexo", " Qual seu sexo ??", "Homem", "Mulher");
- return 1;
- }
- if(dialogid == CREATACCOUNT2)
- {
- if(!response) return 1;
- static _var[100], str[100], tito[100];
- format(tito, sizeof(tito), DestinoDasPersonagens, inputtext);
- if(DOF2_FileExists(tito))
- {
- ShowPlayerDialog(playerid, CREATACCOUNT2, DIALOG_STYLE_INPUT, "Creat Account", " Olá senhor !\n Informe seu nome para efetuar a criação de seu char !\n Nome já usado !", "Criar", "Cancelar");
- return 1;
- }
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid));
- DOF2_SetString(_var, "Personagem3", inputtext);
- DOF2_SaveFile();
- format(str, sizeof(str), DestinoDasPersonagens, DOF2_GetString(_var, "Personagem3"));
- TitoCreatAccount(playerid, DOF2_GetString(_var, "Personagem3"));
- RecorLogin(playerid);
- ShowPlayerDialog(playerid, CREATSEXO, DIALOG_STYLE_MSGBOX, "Sexo", " Qual seu sexo ??", "Homem", "Mulher");
- return 1;
- }
- if(dialogid == CREATACCOUNT3)
- {
- if(!response) return 1;
- static _var[100], str[100], tito[100];
- format(tito, sizeof(tito), DestinoDasPersonagens, inputtext);
- if(DOF2_FileExists(tito))
- {
- ShowPlayerDialog(playerid, CREATACCOUNT3, DIALOG_STYLE_INPUT, "Creat Account", " Olá senhor !\n Informe seu nome para efetuar a criação de seu char !\n Nome já usado ", "Criar", "Cancelar");
- return 1;
- }
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid));
- DOF2_SetString(_var, "Personagem4", inputtext);
- DOF2_SaveFile();
- format(str, sizeof(str), DestinoDasPersonagens, DOF2_GetString(_var, "Personagem4"));
- TitoCreatAccount(playerid, DOF2_GetString(_var, "Personagem4"));
- RecorLogin(playerid);
- ShowPlayerDialog(playerid, CREATSEXO, DIALOG_STYLE_MSGBOX, "Sexo", " Qual seu sexo ??", "Homem", "Mulher");
- return 1;
- }
- if(dialogid == CREATSEXO)
- {
- if(response)
- {
- static tito[100];
- format(tito, sizeof(tito), DestinoDasPersonagens, Name(playerid));
- DOF2_SetInt ( tito , "Sexo" , 1 );
- DOF2_SaveFile();
- } else {
- static tito[100];
- format(tito, sizeof(tito), DestinoDasPersonagens, Name(playerid));
- DOF2_SetInt(tito,"Sexo", 2);
- DOF2_SetInt(tito,"Skin",56);
- DOF2_SaveFile();
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- static _var[200], _str[150];
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid));
- if(playertextid == TextDrawInt[playerid][information][1])
- {
- ClicadoEm[playerid] = 1;
- format(_str,sizeof(_str), "~r~%s", DOF2_GetString(_var, "Personagem1"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][1],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][1]);
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem2"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][2],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][2]);
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem3"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][3],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][3]);
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem4"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][4],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][4]);
- static tito[100];
- format(tito,sizeof(tito), DestinoDasPersonagens,DOF2_GetString(_var, "Personagem1"));
- SetPlayerSkin(playerid, DOF2::GetInt(tito,"Skin"));
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][1]);
- static kk[50];
- format(kk,sizeof(kk), "%s", DOF2_GetString(_var, "Personagem1"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][2],kk);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][2]);
- static ss[50];
- format(ss,sizeof(ss), "~g~$%d", DOF2_GetInt(tito, "Money"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][4],ss);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][4]);
- static ses[50];
- if(DOF2_GetInt(tito,"Sexo") == 1) format(ses,sizeof(ses), "~y~Homem");
- if(DOF2_GetInt(tito,"Sexo") == 2) format(ses,sizeof(ses), "~y~Mulher");
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][3],ses);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][3]);
- }
- if(playertextid == TextDrawInt[playerid][information][2])
- {
- ClicadoEm[playerid] = 2;
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem1"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][1],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][1]);
- format(_str,sizeof(_str), "~r~%s", DOF2_GetString(_var, "Personagem2"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][2],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][2]);
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem3"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][3],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][3]);
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem4"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][4],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][4]);
- static tito[100];
- format(tito,sizeof(tito), DestinoDasPersonagens,DOF2_GetString(_var, "Personagem2"));
- SetPlayerSkin(playerid, DOF2::GetInt(tito,"Skin"));
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][1]);
- static kk[50];
- format(kk,sizeof(kk), "%s", DOF2_GetString(_var, "Personagem2"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][2],kk);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][2]);
- static ss[50];
- format(ss,sizeof(ss), "~g~$%d", DOF2_GetInt(tito, "Money"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][4],ss);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][4]);
- static ses[50];
- if(DOF2_GetInt(tito,"Sexo") == 1) format(ses,sizeof(ses), "~y~Homem");
- if(DOF2_GetInt(tito,"Sexo") == 2) format(ses,sizeof(ses), "~y~Mulher");
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][3],ses);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][3]);
- }
- if(playertextid == TextDrawInt[playerid][information][3])
- {
- ClicadoEm[playerid] = 3;
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem1"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][1],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][1]);
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem2"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][2],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][2]);
- format(_str,sizeof(_str), "~r~%s", DOF2_GetString(_var, "Personagem3"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][3],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][3]);
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem4"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][4],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][4]);
- static tito[100];
- format(tito,sizeof(tito), DestinoDasPersonagens,DOF2_GetString(_var, "Personagem3"));
- SetPlayerSkin(playerid, DOF2::GetInt(tito,"Skin"));
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][1]);
- static kk[50];
- format(kk,sizeof(kk), "%s", DOF2_GetString(_var, "Personagem3"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][2],kk);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][2]);
- static ss[50];
- format(ss,sizeof(ss), "~g~$%d", DOF2_GetInt(tito, "Money"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][4],ss);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][4]);
- static ses[50];
- if(DOF2_GetInt(tito,"Sexo") == 1) format(ses,sizeof(ses), "~y~Homem");
- if(DOF2_GetInt(tito,"Sexo") == 2) format(ses,sizeof(ses), "~y~Mulher");
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][3],ses);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][3]);
- }
- if(playertextid == TextDrawInt[playerid][information][4])
- {
- ClicadoEm[playerid] = 4;
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem1"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][1],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][1]);
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem2"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][2],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][2]);
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem3"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][3],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][3]);
- format(_str,sizeof(_str), "~r~%s", DOF2_GetString(_var, "Personagem4"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][4],_str);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][4]);
- static tito[100];
- format(tito,sizeof(tito), DestinoDasPersonagens,DOF2_GetString(_var, "Personagem4"));
- SetPlayerSkin(playerid, DOF2::GetInt(tito,"Skin"));
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][1]);
- static kk[50];
- format(kk,sizeof(kk), "%s", DOF2_GetString(_var, "Personagem4"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][2],kk);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][2]);
- static ss[50];
- format(ss,sizeof(ss), "~g~$%d", DOF2_GetInt(tito, "Money"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][4],ss);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][4]);
- static ses[50];
- if(DOF2_GetInt(tito,"Sexo") == 1) format(ses,sizeof(ses), "~y~Homem");
- if(DOF2_GetInt(tito,"Sexo") == 2) format(ses,sizeof(ses), "~y~Mulher");
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][TextTito][3],ses);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][3]);
- }
- if(playertextid == TextDrawInt[playerid][information][5])
- {
- if(ClicadoEm[playerid] == 0) return 0;
- if(ClicadoEm[playerid] == 1)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem1") , false ))
- {
- ShowPlayerDialog(playerid, CREATACCOUNT, DIALOG_STYLE_INPUT, "Creat Account", " Olá senhor !\n Informe seu nome para efetuar a criação de seu char !", "Criar", "Cancelar");
- }
- }
- if(ClicadoEm[playerid] == 2)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem2") , false ))
- {
- ShowPlayerDialog(playerid, CREATACCOUNT1, DIALOG_STYLE_INPUT, "Creat Account", " Olá senhor !\n Informe seu nome para efetuar a criação de seu char !", "Criar","Cancelar");
- }
- }
- if(ClicadoEm[playerid] == 3)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem3") , false ))
- {
- ShowPlayerDialog(playerid, CREATACCOUNT2, DIALOG_STYLE_INPUT, "Creat Account", " Olá senhor !\n Informe seu nome para efetuar a criação de seu char !", "Criar", "Cancelar");
- }
- }
- if(ClicadoEm[playerid] == 4)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem4") , false ))
- {
- ShowPlayerDialog(playerid, CREATACCOUNT3, DIALOG_STYLE_INPUT, "Creat Account", " Olá senhor !\n Informe seu nome para efetuar a criação de seu char !", "Criar", "Cancelar");
- }
- }
- }
- if(playertextid == TextDrawInt[playerid][information][7])
- {
- if(ClicadoEm[playerid] == 1)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem1") , false ))return 1;
- SpawnPlayer(playerid);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][1]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][2]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][3]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][4]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][5]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][6]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][7]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][1]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][2]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][3]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][4]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][5]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][6]);
- CancelSelectTextDraw(playerid);
- static str[150];
- format(str,sizeof(str), "%s", DOF2_GetString(_var,"Personagem1"));
- LoadFiles(playerid, str);
- SetPlayerInterior(playerid, 0);
- logged[playerid] = true;
- for(new i = 0; i <20; i ++)
- SendClientMessage(playerid, -1, " ");
- SendClientMessage(playerid, -1, "{FFAE5E}Atenção{FFFFFF}: Se você quizer pode jogar com outro personagem seu utilize:{FFAE5E}'/{FFFFFF}logout{FFAE5E}'");
- format(_var,sizeof(_var),"Bem-vindo ao {FF8000}Server{FFFFFF}, {4242FF}%s{FFFFFF} você possue {66FF66}$%s{FFFFFF} no bolso.", Name(playerid), Comma(PlayerInfo[playerid][Money]));
- SendClientMessage(playerid, -1, _var);
- }
- if(ClicadoEm[playerid] == 2)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem2") , false ))return 1;
- SpawnPlayer(playerid);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][1]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][2]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][3]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][4]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][5]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][6]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][7]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][1]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][2]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][3]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][4]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][5]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][6]);
- CancelSelectTextDraw(playerid);
- static str[150];
- format(str,sizeof(str), "%s", DOF2_GetString(_var,"Personagem2"));
- LoadFiles(playerid, str);
- SetPlayerInterior(playerid, 0);
- logged[playerid] = true;
- for(new i = 0; i <20; i ++)
- SendClientMessage(playerid, -1, " ");
- SendClientMessage(playerid, -1, "{FFAE5E}Atenção{FFFFFF}: Se você quizer pode jogar com outro personagem seu utilize:{FFAE5E}'/{FFFFFF}logout{FFAE5E}'");
- format(_var,sizeof(_var),"Bem-vindo ao {FF8000}Server{FFFFFF}, {4242FF}%s{FFFFFF} você possue {66FF66}$%s{FFFFFF} no bolso.", Name(playerid), Comma(PlayerInfo[playerid][Money]));
- SendClientMessage(playerid, -1, _var);
- }
- if(ClicadoEm[playerid] == 3)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem3") , false ))return 1;
- SpawnPlayer(playerid);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][1]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][2]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][3]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][4]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][5]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][6]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][7]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][1]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][2]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][3]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][4]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][5]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][6]);
- CancelSelectTextDraw(playerid);
- static str[150];
- format(str,sizeof(str), "%s", DOF2_GetString(_var,"Personagem3"));
- LoadFiles(playerid, str);
- SetPlayerInterior(playerid, 0);
- logged[playerid] = true;
- for(new i = 0; i <20; i ++)
- SendClientMessage(playerid, -1, " ");
- SendClientMessage(playerid, -1, "{FFAE5E}Atenção{FFFFFF}: Se você quizer pode jogar com outro personagem seu utilize:{FFAE5E}'/{FFFFFF}logout{FFAE5E}'");
- format(_var,sizeof(_var),"Bem-vindo ao {FF8000}Server{FFFFFF}, {4242FF}%s{FFFFFF} você possue {66FF66}$%s{FFFFFF} no bolso.", Name(playerid), Comma(PlayerInfo[playerid][Money]));
- SendClientMessage(playerid, -1, _var);
- }
- if(ClicadoEm[playerid] == 4)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem4") , false ))return 1;
- SpawnPlayer(playerid);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][1]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][2]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][3]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][4]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][5]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][6]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][7]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][1]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][2]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][3]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][4]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][5]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][6]);
- CancelSelectTextDraw(playerid);
- static str[150];
- format(str,sizeof(str), "%s", DOF2_GetString(_var,"Personagem4"));
- LoadFiles(playerid, str);
- SetPlayerInterior(playerid, 0);
- logged[playerid] = true;
- for(new i = 0; i <20; i ++)
- SendClientMessage(playerid, -1, " ");
- SendClientMessage(playerid, -1, "{FFAE5E}Atenção{FFFFFF}: Se você quizer pode jogar com outro personagem seu utilize:{FFAE5E}'/{FFFFFF}logout{FFAE5E}'");
- format(_var,sizeof(_var),"Bem-vindo ao {FF8000}Server{FFFFFF}, {4242FF}%s{FFFFFF} você possue {66FF66}$%s{FFFFFF} no bolso.", Name(playerid), Comma(PlayerInfo[playerid][Money]));
- SendClientMessage(playerid, -1, _var);
- }
- }
- static tito[100];
- if(playertextid == TextDrawInt[playerid][information][6])
- {
- if(ClicadoEm[playerid] == 1)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem1") , false )) return 1;
- format(tito,sizeof(tito),DestinoDasPersonagens,DOF2_GetString(_var,"Personagem1"));
- DOF2_RemoveFile(tito);
- DOF2_SetString(_var, "Personagem1", "Nao Existente");
- RecorLogin(playerid);
- }
- if(ClicadoEm[playerid] == 2)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem2") , false )) return 1;
- format(tito,sizeof(tito),DestinoDasPersonagens,DOF2_GetString(_var,"Personagem2"));
- DOF2_RemoveFile(tito);
- DOF2_SetString(_var, "Personagem2", "Nao Existente");
- RecorLogin(playerid);
- }
- if(ClicadoEm[playerid] == 3)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem3") , false )) return 1;
- format(tito,sizeof(tito),DestinoDasPersonagens,DOF2_GetString(_var,"Personagem3"));
- DOF2_RemoveFile(tito);
- DOF2_SetString(_var, "Personagem3", "Nao Existente");
- RecorLogin(playerid);
- }
- if(ClicadoEm[playerid] == 4)
- {
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem4") , false )) return 1;
- format(tito,sizeof(tito),DestinoDasPersonagens,DOF2_GetString(_var,"Personagem4"));
- DOF2_RemoveFile(tito);
- DOF2_SetString(_var, "Personagem4", "Nao Existente");
- RecorLogin(playerid);
- }
- }
- return 1;
- }
- //******************************************************************************
- command(logout,playerid,params[])
- {
- if (logged[playerid] == true)
- {
- for(new i = 0; i <15; i ++)
- SendClientMessage(playerid, -1, " ");
- SaveFiles(playerid);
- logged[playerid] = false;
- CreatText(playerid);
- InfoPlayerLogin(playerid);
- RecorLogin(playerid);
- SetPlayerScore(playerid, 0);
- ResetPlayerMoney(playerid);
- SetPlayerColor(playerid, -1);
- if(CharInfo[playerid][pAdmin] > 0){
- SendClientMessage(playerid, -1,"{9F9FFF}admin{FFFFFF}: Para você entrar no aduty , digite {C0C0C0}/aduty");
- loggedAduty[playerid] = false;
- }
- return 1;
- }
- return 1;
- }
- command(aduty,playerid,params[])
- {
- if (logged[playerid] == false && CharInfo[playerid][pAdmin] > 0)
- {
- SpawnPlayer(playerid);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][1]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][2]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][3]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][4]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][5]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][6]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][information][7]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][1]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][2]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][3]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][4]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][5]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][6]);
- CancelSelectTextDraw(playerid);
- SetPlayerInterior(playerid, 0);
- logged[playerid] = true;
- SetPlayerPos(playerid, 1671.5687,-1209.5769,14.9101);
- SetPlayerSkin(playerid, 217);
- for(new i = 0; i <20; i ++)
- SendClientMessage(playerid, -1, " ");
- SendClientMessage(playerid, -1,"{9F9FFF}admin{FFFFFF}: Você esta logado em {9F9FFF}aduty{FFFFFF}.");
- loggedAduty[playerid] = true;
- ClicadoEm[playerid] = 0;
- SetPlayerColor(playerid, 0xFF8000FF);
- return 1;
- }
- return 1;
- }
- command(admins,playerid,params[])
- {
- static text[30], _var[100];
- if(logged[playerid] == false)return 1;
- SendClientMessage(playerid, -1, "Admins : ");
- for(new i = 0; i <MAX_PLAYERS; i ++)
- {
- static mm[MAX_PLAYER_NAME];
- GetPlayerName(i, mm ,sizeof(mm));
- switch(CharInfo[i][pAdmin]){
- case 1: text = "Beta Tester";
- }
- if(CharInfo[i][pAdmin] > 0 && loggedAduty[i] == true)
- {
- format(_var,sizeof(_var),"{6F6FFF} %s {FFFFFF}- %s (%d)", text, mm,i);
- SendClientMessage(playerid, -1, _var);
- }
- }
- return 1;
- }
- //*************************** Admin ****************************************
- command(helper,playerid,params[])
- {
- static tito[900];
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(CharInfo[playerid][pAdmin] == 1)
- {
- strcat(tito,"{FFA448} - Beta Tester\n\n");
- strcat(tito,"{FFA448}Comandos{FFFFFF}: /a /cv /ir /trazer /kick /congelar /descongelar /mp \n");
- strcat(tito,"{FFA448}Comandos{FFFFFF}: /explodir /spec /specoff /setskin /limparchat /up /tapa\n");
- }
- return ShowPlayerDialog ( playerid , 590 , DIALOG_STYLE_MSGBOX , "Helper Admin" , tito , "Sair" , # );
- }
- command(a,playerid,params[])
- {
- static _var[150], text[100];
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"s", text))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /a [ Texto ]");
- format(_var,sizeof(_var),"%s : %s",Name(playerid), text);
- for(new i = 0; i <MAX_PLAYERS; i ++)
- {
- if(loggedAduty[playerid] == true)
- SendClientMessage(i, -1, _var);
- }
- return 1;
- }
- command(cv,playerid,params[])
- {
- static _var[150], text[100];
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"s", text))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /cv [ Texto ]");
- format(_var,sizeof(_var),"|Aviso|%s{FFFFFF}: %s",Name(playerid),text);
- SendClientMessageToAll(0x64FF64FF,_var);
- return 1;
- }
- command(ir,playerid,params[])
- {
- static ID, Float:Pos[3];
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"d", ID))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /ir [ ID ]");
- if(!IsPlayerConnected(ID))return 1;
- GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
- SetPlayerPos(playerid,Pos[0], Pos[1], Pos[2]);
- SendClientMessage(playerid,0xC0C0C0FF," Você foi teleportado .");
- return 1;
- }
- command(trazer,playerid,params[])
- {
- static ID, Float:Pos[3];
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"d", ID))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /trazer [ ID ]");
- if(!IsPlayerConnected(ID))return 1;
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- SetPlayerPos(ID,Pos[0], Pos[1], Pos[2]);
- SendClientMessage(ID,0xC0C0C0FF," Você foi teleportado .");
- return 1;
- }
- command(kick,playerid,params[])
- {
- static _var[100], ID, motivo[99];
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"ds", ID, motivo))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /kick [ ID ] [ MOTIVO ]");
- if(!IsPlayerConnected(ID))return 1;
- format(_var,sizeof(_var)," O administrador %s kickou %s , motivo: %s", Name(playerid),Name(ID),motivo);
- SendClientMessageToAll(0xFF8484FF,_var);
- Kick(ID);
- return 1;
- }
- command(congelar,playerid,params[])
- {
- static ID;
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"d", ID))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /congelar [ ID ]");
- if(!IsPlayerConnected(ID))return 1;
- TogglePlayerControllable(ID, 0);
- return 1;
- }
- command(descongelar,playerid,params[])
- {
- static ID;
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"d", ID))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /descongelar [ ID ]");
- if(!IsPlayerConnected(ID))return 1;
- TogglePlayerControllable(ID, 1);
- return 1;
- }
- command(mp,playerid,params[])
- {
- static ID, text[100], _var[300], str[300];
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"d", ID))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /mp [ ID ] [ TEXTO ]");
- if(!IsPlayerConnected(ID))return 1;
- if(CharInfo[ID][pAdmin] > 0) return 1;
- format(_var,sizeof(_var)," MP enviado com sucesso (%s): %s ", Name(ID), text);
- SendClientMessage(playerid, 0xFF8000FF,_var);
- format(str,sizeof(str),"|MP| %s : %s ", Name(playerid), text);
- SendClientMessage(ID, 0xFF8000FF,str);
- return 1;
- }
- command(explodir,playerid,params[])
- {
- static ID, Float:Pos[3];
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"d", ID))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /explodir [ ID ]");
- if(!IsPlayerConnected(ID))return 1;
- GetPlayerPos(ID, Pos[0], Pos[1],Pos[2]);
- CreateExplosion(Pos[0], Pos[1]+2 , Pos[2], 0, 1);
- SendClientMessage(playerid, 0x808000FF,"Explosão criada no player!");
- return 1;
- }
- command(spec,playerid,params[])
- {
- static ID;
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"d", ID))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /spec [ ID ]");
- if(!IsPlayerConnected(ID))return 1;
- PlayerSpectatePlayer(playerid, ID);
- TogglePlayerSpectating(playerid, 0);
- SetPlayerInterior(playerid,GetPlayerInterior(ID));
- SendClientMessage(playerid, 0xC0C0C0FF,"Spec Ativado.");
- return 1;
- }
- command(specoff,playerid,params[])
- {
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- TogglePlayerSpectating(playerid, 1);
- SendClientMessage(playerid, 0xC0C0C0FF,"Spec desativado.");
- return 1;
- }
- command(setskin,playerid,params[])
- {
- static ID, skin;
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"dd", ID, skin))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /setskin [ ID ] [ ID Skin ]");
- if(!IsPlayerConnected(ID))return 1;
- if( 1 < (skin) > 299 ) return 1;
- SetPlayerSkin(ID, skin);
- SendClientMessage(playerid,0xC0C0C0FF, "Skin setada(o) !");
- return 1;
- }
- command(limparchat,playerid,params[])
- {
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- for(new i = 0; i <MAX_PLAYERS; i ++)
- {
- for(new s = 0; s <90; s ++)
- SendClientMessage(s, -1, " ");
- }
- static _var[200];
- format(_var,sizeof(_var),"Chat limpo por {AE5EFF}%s{C0C0C0}.", Name(playerid));
- SendClientMessageToAll(0xC0C0C0FF,_var);
- return 1;
- }
- command(up,playerid,params[])
- {
- new Float:Pos[3] ;
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]+2);
- SendClientMessage(playerid,0xC0C0C0FF, "Você deu um UP em seu char!");
- return 1;
- }
- command(tapa,playerid,params[])
- {
- static ID, Float:Pos[3];
- if(CharInfo[playerid][pAdmin] < 1 || loggedAduty[playerid] == false)return SendClientMessage(playerid, 0xFF5151FF, "[Erro] Você não é admin ou não esta logado no aduty.");
- if(sscanf(params,"d", ID))return SendClientMessage(playerid, 0xC0C0C0FF, "CMD : /tapa [ ID ]");
- if(!IsPlayerConnected(ID))return 1;
- GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
- SetPlayerPos(ID, Pos[0], Pos[1], Pos[2]+20);
- return 1;
- }
- //******************************************************************************
- CallBack::RecorLogin(playerid)
- {
- static _var[75], _str[150];
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid));
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem1") , false ))
- {
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem1"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][1],_str);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][1], 0xFFFFFF66);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][1]);
- }
- else
- {
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem1"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][1],_str);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][1], 0xB7B70066);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][1]);
- }
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem2") , false ))
- {
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem2"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][2],_str);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][2], 0xFFFFFF66);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][2]);
- }
- else
- {
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem2"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][2],_str);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][2], 0xB7B70066);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][2]);
- }
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem3") , false ))
- {
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem3"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][3],_str);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][3], 0xFFFFFF66);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][3]);
- }
- else
- {
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem3"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][3],_str);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][3], 0xB7B70066);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][3]);
- }
- if ( !strcmp ( "Nao Existente" , DOF2_GetString(_var,"Personagem4") , false ))
- {
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem4"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][4],_str);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][4], 0xFFFFFF66);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][4]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][4]);
- }
- else
- {
- format(_str,sizeof(_str), "%s", DOF2_GetString(_var, "Personagem4"));
- PlayerTextDrawSetString(playerid, TextDrawInt[playerid][information][4],_str);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][4], 0xB7B70066);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][4]);
- }
- return 1;
- }
- CallBack::SaveFiles(playerid)
- {
- if(logged[playerid] == true && loggedAduty[playerid] == false)
- {
- static _var[40];
- GetPlayerPos(playerid , PlayerInfo[playerid][x] , PlayerInfo[playerid][y] , PlayerInfo[playerid][z]);
- GetPlayerFacingAngle(playerid, PlayerInfo[playerid][Angle]);
- format(_var, sizeof(_var), DestinoDasPersonagens, Name(playerid));
- DOF2_SetInt(_var, "Money", PlayerInfo[playerid][Money]);
- DOF2_SetInt(_var, "Level", PlayerInfo[playerid][Level]);
- DOF2_SetInt(_var, "Skin", PlayerInfo[playerid][Skin]);
- DOF2_SetInt(_var, "Sexo", PlayerInfo[playerid][Sexo]);
- DOF2_SetFloat(_var, "PosX", PlayerInfo[playerid][x]);
- DOF2_SetFloat(_var, "PosY", PlayerInfo[playerid][y]);
- DOF2_SetFloat(_var, "PosZ", PlayerInfo[playerid][z]);
- DOF2_SetFloat(_var, "Angle", PlayerInfo[playerid][Angle]);
- DOF2_SaveFile();
- }
- return 1;
- }
- CallBack::LoadFiles(playerid, const Player[])
- {
- static _var[40];
- format(_var, sizeof(_var), DestinoDasPersonagens, Player);
- PlayerInfo[playerid][Money] = DOF2_GetInt(_var, "Money");
- PlayerInfo[playerid][Level] = DOF2_GetInt(_var, "Level");
- PlayerInfo[playerid][Skin] = DOF2_GetInt(_var, "Skin");
- PlayerInfo[playerid][Sexo] = DOF2_GetInt(_var, "Sexo");
- GivePlayerMoney(playerid,PlayerInfo[playerid][Money]);
- SetPlayerScore(playerid,PlayerInfo[playerid][Level]);
- SetPlayerSkin(playerid,PlayerInfo[playerid][Skin]);
- PlayerInfo[playerid][x] = DOF2_GetFloat(_var, "PosX");
- PlayerInfo[playerid][y] = DOF2_GetFloat(_var, "PosY");
- PlayerInfo[playerid][z] = DOF2_GetFloat(_var, "PosZ");
- PlayerInfo[playerid][Angle] = DOF2_GetFloat(_var, "Angle");
- SetPlayerPos(playerid, PlayerInfo[playerid][x], PlayerInfo[playerid][y] ,PlayerInfo[playerid][z]);
- return 1;
- }
- CallBack::TitoCreatAccount(playerid, const NameAccont[])
- {
- static _var[100];
- format(_var, sizeof(_var), DestinoDasPersonagens, NameAccont);
- DOF2_CreateFile(_var);
- DOF2_SetString(_var, "Conta", PlayerName(playerid));
- DOF2_SetInt(_var, "Money", 1000);
- DOF2_SetInt(_var, "Level", 1);
- DOF2_SetInt(_var, "Skin", 24);
- DOF2_SetString(_var, "Sexo", "Sexo Indefinido");
- DOF2_SetFloat(_var, "PosX", 2029.5112);
- DOF2_SetFloat(_var, "PosY", -1418.6359);
- DOF2_SetFloat(_var, "PosZ", 16.9922);
- DOF2_SetFloat(_var, "Angle", 180);
- DOF2_SaveFile();
- return 1;
- }
- CallBack::SalvarChars(playerid)
- {
- static _var[75];
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid));
- DOF2_SetString(_var, "Personagem1", CharInfo[playerid][Personagens][0]);
- DOF2_SetString(_var, "Personagem2", CharInfo[playerid][Personagens][1]);
- DOF2_SetString(_var, "Personagem3", CharInfo[playerid][Personagens][2]);
- DOF2_SetString(_var, "Personagem4", CharInfo[playerid][Personagens][3]);
- DOF2_SetInt(_var, "Admininistrador", CharInfo[playerid][pAdmin]);
- DOF2_SaveFile();
- return 1;
- }
- CallBack::CarChars(playerid)
- {
- static _var[75];
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid));
- CharInfo[playerid][pAdmin] = DOF2_GetInt(_var, "Admininistrador");
- return 1;
- }
- stock Name(playerid)
- {
- static str[100], _var[100];
- format(_var, sizeof(_var), DestinoDasContas, PlayerName(playerid));
- static mm[MAX_PLAYER_NAME];
- GetPlayerName(playerid, mm ,sizeof(mm));
- if(ClicadoEm[playerid] == 0)format(str, sizeof(str), "%s", mm);
- if(ClicadoEm[playerid] == 1)format(str, sizeof(str), "%s", DOF2_GetString(_var, "Personagem1"));
- if(ClicadoEm[playerid] == 2)format(str, sizeof(str), "%s", DOF2_GetString(_var, "Personagem2"));
- if(ClicadoEm[playerid] == 3)format(str, sizeof(str), "%s", DOF2_GetString(_var, "Personagem3"));
- if(ClicadoEm[playerid] == 4)format(str, sizeof(str), "%s", DOF2_GetString(_var, "Personagem4"));
- return str;
- }
- stock PlayerName(playerid)
- {
- static mm[MAX_PLAYER_NAME];
- GetPlayerName(playerid,mm,sizeof(mm));
- return mm;
- }
- CallBack::ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
- {
- if(IsPlayerConnected(playerid))
- {
- static Float:posx, Float:posy, Float:posz;
- static Float:oldposx, Float:oldposy, Float:oldposz;
- static Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
- {
- GetPlayerPos(i, posx, posy, posz);
- tempposx = (oldposx -posx);
- tempposy = (oldposy -posy);
- tempposz = (oldposz -posz);
- if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) // If the player is within 16 meters
- {
- SendClientMessage(i, col1, string);
- }
- else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) // within 8 meters
- {
- SendClientMessage(i, col2, string);
- }
- else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) //4 meters
- {
- SendClientMessage(i, col3, string);
- }
- else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) //2 meters
- {
- SendClientMessage(i, col4, string);
- }
- else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) //1 meter
- {
- SendClientMessage(i, col5, string);
- }
- }
- else
- {
- SendClientMessage(i, col1, string);
- }
- }
- }
- return 1;
- }
- CallBack::CreatText(playerid)
- {
- SpawnPlayer(playerid);
- SetPlayerCameraPos(playerid, 1730.3738, -1643.0079, 25.1794);
- SetPlayerCameraLookAt(playerid, 1729.5604, -1643.5969, 24.8593);
- SetPlayerPos(playerid,1715.6434,-1648.4926,20.2257);
- SetPlayerFacingAngle(playerid, 270);
- SetPlayerInterior(playerid, 18);
- TogglePlayerControllable(playerid,0);
- TextDrawInt[playerid][information][0] = CreatePlayerTextDraw(playerid, 30.000000, 114.000000, "- Persongens");
- PlayerTextDrawBackgroundColor(playerid, TextDrawInt[playerid][information][0], 255);
- PlayerTextDrawFont(playerid, TextDrawInt[playerid][information][0], 0);
- PlayerTextDrawLetterSize(playerid, TextDrawInt[playerid][information][0], 0.740000, 2.599999);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][information][0], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][information][0], 0);
- PlayerTextDrawSetProportional(playerid, TextDrawInt[playerid][information][0], 1);
- PlayerTextDrawSetShadow(playerid, TextDrawInt[playerid][information][0], 1);
- PlayerTextDrawSetSelectable(playerid, TextDrawInt[playerid][information][0], 0);
- TextDrawInt[playerid][information][1] = CreatePlayerTextDraw(playerid,58.000000, 154.000000, "Nao Existente");
- PlayerTextDrawBackgroundColor(playerid,TextDrawInt[playerid][information][1], 255);
- PlayerTextDrawFont(playerid,TextDrawInt[playerid][information][1], 1);
- PlayerTextDrawLetterSize(playerid,TextDrawInt[playerid][information][1], 0.440000, 1.500000);
- PlayerTextDrawColor(playerid,TextDrawInt[playerid][information][1], -1);
- PlayerTextDrawSetOutline(playerid,TextDrawInt[playerid][information][1], 0);
- PlayerTextDrawSetProportional(playerid,TextDrawInt[playerid][information][1], 1);
- PlayerTextDrawSetShadow(playerid,TextDrawInt[playerid][information][1], 1);
- PlayerTextDrawUseBox(playerid,TextDrawInt[playerid][information][1], 1);
- PlayerTextDrawBoxColor(playerid,TextDrawInt[playerid][information][1], -154);
- PlayerTextDrawTextSize(playerid,TextDrawInt[playerid][information][1], 245.000000, 100.000000);
- PlayerTextDrawSetSelectable(playerid,PlayerText:TextDrawInt[playerid][information][1], 1);
- TextDrawInt[playerid][information][2] = CreatePlayerTextDraw(playerid, 58.000000, 178.000000, "Nao Existente");
- PlayerTextDrawBackgroundColor(playerid, TextDrawInt[playerid][information][2], 255);
- PlayerTextDrawFont(playerid, TextDrawInt[playerid][information][2], 1);
- PlayerTextDrawLetterSize(playerid, TextDrawInt[playerid][information][2], 0.440000, 1.500000);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][information][2], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][information][2], 0);
- PlayerTextDrawSetProportional(playerid, TextDrawInt[playerid][information][2], 1);
- PlayerTextDrawSetShadow(playerid, TextDrawInt[playerid][information][2], 1);
- PlayerTextDrawUseBox(playerid, TextDrawInt[playerid][information][2], 1);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][2], -154);
- PlayerTextDrawTextSize(playerid, TextDrawInt[playerid][information][2], 245.000000, 100.000000);
- PlayerTextDrawSetSelectable(playerid, TextDrawInt[playerid][information][2], 1);
- TextDrawInt[playerid][information][3] = CreatePlayerTextDraw(playerid, 58.000000, 202.000000, "Nao Existente");
- PlayerTextDrawBackgroundColor(playerid, TextDrawInt[playerid][information][3], 255);
- PlayerTextDrawFont(playerid, TextDrawInt[playerid][information][3], 1);
- PlayerTextDrawLetterSize(playerid, TextDrawInt[playerid][information][3], 0.440000, 1.500000);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][information][3], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][information][3], 0);
- PlayerTextDrawSetProportional(playerid, TextDrawInt[playerid][information][3], 1);
- PlayerTextDrawSetShadow(playerid, TextDrawInt[playerid][information][3], 1);
- PlayerTextDrawUseBox(playerid, TextDrawInt[playerid][information][3], 1);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][3], -154);
- PlayerTextDrawTextSize(playerid, TextDrawInt[playerid][information][3], 245.000000, 100.000000);
- PlayerTextDrawSetSelectable(playerid, TextDrawInt[playerid][information][3], 1);
- TextDrawInt[playerid][information][4] = CreatePlayerTextDraw(playerid, 58.000000, 226.000000, "Nao Existente");
- PlayerTextDrawBackgroundColor(playerid, TextDrawInt[playerid][information][4], 255);
- PlayerTextDrawFont(playerid, TextDrawInt[playerid][information][4], 1);
- PlayerTextDrawLetterSize(playerid, TextDrawInt[playerid][information][4], 0.440000, 1.500000);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][information][4], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][information][4], 0);
- PlayerTextDrawSetProportional(playerid, TextDrawInt[playerid][information][4], 1);
- PlayerTextDrawSetShadow(playerid, TextDrawInt[playerid][information][4], 1);
- PlayerTextDrawUseBox(playerid, TextDrawInt[playerid][information][4], 1);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][4], -154);
- PlayerTextDrawTextSize(playerid, TextDrawInt[playerid][information][4], 245.000000, 100.000000);
- PlayerTextDrawSetSelectable(playerid, TextDrawInt[playerid][information][4], 1);
- TextDrawInt[playerid][information][5] = CreatePlayerTextDraw(playerid, 57.000000, 250.000000, "Criar");
- PlayerTextDrawBackgroundColor(playerid, TextDrawInt[playerid][information][5], 255);
- PlayerTextDrawFont(playerid, TextDrawInt[playerid][information][5], 1);
- PlayerTextDrawLetterSize(playerid, TextDrawInt[playerid][information][5], 0.450000, 1.300000);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][information][5], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][information][5], 0);
- PlayerTextDrawSetProportional(playerid, TextDrawInt[playerid][information][5], 1);
- PlayerTextDrawSetShadow(playerid, TextDrawInt[playerid][information][5], 1);
- PlayerTextDrawUseBox(playerid, TextDrawInt[playerid][information][5], 1);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][5], 1795123814);
- PlayerTextDrawTextSize(playerid, TextDrawInt[playerid][information][5], 93.000000, 100.000000);
- PlayerTextDrawSetSelectable(playerid, TextDrawInt[playerid][information][5], 1);
- TextDrawInt[playerid][information][6] = CreatePlayerTextDraw(playerid, 100.000000, 250.000000, "Deletar");
- PlayerTextDrawBackgroundColor(playerid, TextDrawInt[playerid][information][6], 255);
- PlayerTextDrawFont(playerid, TextDrawInt[playerid][information][6], 1);
- PlayerTextDrawLetterSize(playerid, TextDrawInt[playerid][information][6], 0.450000, 1.300000);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][information][6], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][information][6], 0);
- PlayerTextDrawSetProportional(playerid, TextDrawInt[playerid][information][6], 1);
- PlayerTextDrawSetShadow(playerid, TextDrawInt[playerid][information][6], 1);
- PlayerTextDrawUseBox(playerid, TextDrawInt[playerid][information][6], 1);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][6], -11579546);
- PlayerTextDrawTextSize(playerid, TextDrawInt[playerid][information][6], 152.000000, 100.000000);
- PlayerTextDrawSetSelectable(playerid, TextDrawInt[playerid][information][6], 1);
- TextDrawInt[playerid][information][7] = CreatePlayerTextDraw(playerid, 172.000000, 250.000000, "Selecionar");
- PlayerTextDrawBackgroundColor(playerid, TextDrawInt[playerid][information][7], 255);
- PlayerTextDrawFont(playerid, TextDrawInt[playerid][information][7], 1);
- PlayerTextDrawLetterSize(playerid, TextDrawInt[playerid][information][7], 0.450000, 1.300000);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][information][7], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][information][7], 0);
- PlayerTextDrawSetProportional(playerid, TextDrawInt[playerid][information][7], 1);
- PlayerTextDrawSetShadow(playerid, TextDrawInt[playerid][information][7], 1);
- PlayerTextDrawUseBox(playerid, TextDrawInt[playerid][information][7], 1);
- PlayerTextDrawBoxColor(playerid, TextDrawInt[playerid][information][7], -6869146);
- PlayerTextDrawTextSize(playerid, TextDrawInt[playerid][information][7], 245.000000, 100.000000);
- PlayerTextDrawSetSelectable(playerid, TextDrawInt[playerid][information][7], 1);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][0]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][1]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][2]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][3]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][4]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][5]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][6]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][information][7]);
- SelectTextDraw(playerid, 0xFFFFFFFF);
- RecorLogin(playerid);
- InfoPlayerLogin(playerid);
- return 1;
- }
- CallBack::InfoPlayerLogin(playerid)
- {
- TextDrawInt[playerid][TextTito][0] = CreatePlayerTextDraw(playerid,30.000000, 271.000000, "- Informacoes");
- PlayerTextDrawBackgroundColor(playerid,TextDrawInt[playerid][TextTito][0], 255);
- PlayerTextDrawFont(playerid,TextDrawInt[playerid][TextTito][0], 0);
- PlayerTextDrawLetterSize(playerid,TextDrawInt[playerid][TextTito][0], 0.740000, 2.599998);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][TextTito][0], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][TextTito][0], 0);
- PlayerTextDrawSetProportional(playerid,TextDrawInt[playerid][TextTito][0], 1);
- PlayerTextDrawSetShadow(playerid, TextDrawInt[playerid][TextTito][0], 1);
- PlayerTextDrawSetSelectable(playerid,TextDrawInt[playerid][TextTito][0], 0);
- TextDrawInt[playerid][TextTito][1] = CreatePlayerTextDraw(playerid,58.000000, 306.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,TextDrawInt[playerid][TextTito][1], 255);
- PlayerTextDrawFont(playerid,TextDrawInt[playerid][TextTito][1], 1);
- PlayerTextDrawLetterSize(playerid,TextDrawInt[playerid][TextTito][1], 0.500000, 11.000000);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][TextTito][1], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][TextTito][1], 0);
- PlayerTextDrawSetProportional(playerid,TextDrawInt[playerid][TextTito][1], 1);
- PlayerTextDrawSetShadow(playerid,TextDrawInt[playerid][TextTito][1], 1);
- PlayerTextDrawUseBox(playerid,TextDrawInt[playerid][TextTito][1], 1);
- PlayerTextDrawBoxColor(playerid,TextDrawInt[playerid][TextTito][1], -154);
- PlayerTextDrawTextSize(playerid,TextDrawInt[playerid][TextTito][1], 246.000000, 94.000000);
- PlayerTextDrawSetSelectable(playerid,TextDrawInt[playerid][TextTito][1], 0);
- TextDrawInt[playerid][TextTito][2] = CreatePlayerTextDraw(playerid,60.000000, 310.000000, " ");
- PlayerTextDrawBackgroundColor(playerid,TextDrawInt[playerid][TextTito][2], 255);
- PlayerTextDrawFont(playerid,TextDrawInt[playerid][TextTito][2], 1);
- PlayerTextDrawLetterSize(playerid,TextDrawInt[playerid][TextTito][2], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][TextTito][2], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][TextTito][2], 1);
- PlayerTextDrawSetProportional(playerid,TextDrawInt[playerid][TextTito][2], 1);
- PlayerTextDrawSetSelectable(playerid,TextDrawInt[playerid][TextTito][2], 0);
- TextDrawInt[playerid][TextTito][3] = CreatePlayerTextDraw(playerid,70.000000, 328.000000, " ");
- PlayerTextDrawBackgroundColor(playerid,TextDrawInt[playerid][TextTito][3], 255);
- PlayerTextDrawFont(playerid,TextDrawInt[playerid][TextTito][3], 1);
- PlayerTextDrawLetterSize(playerid,TextDrawInt[playerid][TextTito][3], 0.370000, 0.899999);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][TextTito][3], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][TextTito][3], 1);
- PlayerTextDrawSetProportional(playerid,TextDrawInt[playerid][TextTito][3], 1);
- PlayerTextDrawSetSelectable(playerid,TextDrawInt[playerid][TextTito][3], 0);
- TextDrawInt[playerid][TextTito][4] = CreatePlayerTextDraw(playerid,177.000000, 394.000000, " ");
- PlayerTextDrawBackgroundColor(playerid,TextDrawInt[playerid][TextTito][4], 255);
- PlayerTextDrawFont(playerid,TextDrawInt[playerid][TextTito][4], 1);
- PlayerTextDrawLetterSize(playerid,TextDrawInt[playerid][TextTito][4], 0.390000, 0.899999);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][TextTito][4], 1543461734);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][TextTito][4], 1);
- PlayerTextDrawSetProportional(playerid,TextDrawInt[playerid][TextTito][4], 1);
- PlayerTextDrawSetSelectable(playerid,TextDrawInt[playerid][TextTito][4], 0);
- TextDrawInt[playerid][TextTito][5] = CreatePlayerTextDraw(playerid,63.000000, 350.000000, " ");
- PlayerTextDrawBackgroundColor(playerid,TextDrawInt[playerid][TextTito][5], 255);
- PlayerTextDrawFont(playerid,TextDrawInt[playerid][TextTito][5], 1);
- PlayerTextDrawLetterSize(playerid,TextDrawInt[playerid][TextTito][5], 0.370000, 0.899999);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][TextTito][5], -65281);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][TextTito][5], 1);
- PlayerTextDrawSetProportional(playerid,TextDrawInt[playerid][TextTito][5], 1);
- PlayerTextDrawSetSelectable(playerid,TextDrawInt[playerid][TextTito][5], 0);
- TextDrawInt[playerid][TextTito][6] = CreatePlayerTextDraw(playerid,67.000000, 367.000000, " ");
- PlayerTextDrawBackgroundColor(playerid,TextDrawInt[playerid][TextTito][6], 255);
- PlayerTextDrawFont(playerid,TextDrawInt[playerid][TextTito][6], 1);
- PlayerTextDrawLetterSize(playerid,TextDrawInt[playerid][TextTito][6], 0.320000, 0.799999);
- PlayerTextDrawColor(playerid, TextDrawInt[playerid][TextTito][6], -1);
- PlayerTextDrawSetOutline(playerid, TextDrawInt[playerid][TextTito][6], 1);
- PlayerTextDrawSetProportional(playerid,TextDrawInt[playerid][TextTito][6], 1);
- PlayerTextDrawSetSelectable(playerid,TextDrawInt[playerid][TextTito][6], 0);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][1]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][2]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][3]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][4]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][5]);
- PlayerTextDrawShow(playerid, TextDrawInt[playerid][TextTito][6]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][0]);
- PlayerTextDrawHide(playerid, TextDrawInt[playerid][TextTito][1]);
- return 1;
- }
- stock Comma(numbers) //by Gamer931215
- {
- new temp[100],counter = -1;
- valstr(temp,numbers);
- for(new i = strlen(temp);i > 0; i--)
- {
- counter++;
- if(counter == 3)
- {
- strins(temp,",",i);
- counter = 0;
- }
- }
- return temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement