Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //Create by Yoshi_, jamais remova os créditos. Seja um bom homem, assim como eu fui de disponibilizar este sistema
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- //Create by Yoshi_, equipe: PAWN EXPRESS
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- #include "a_samp.inc"
- #include "zcmd.inc"
- #include "sscanf2.inc"
- #include "Dini.inc"
- #include "foreach.inc"
- // -- NEW_STRCMP -- //
- #define varGet(%0) getproperty(0,%0)
- #define varSet(%0,%1) setproperty(0, %0, %1)
- #define new_strcmp(%0,%1) \
- (varSet(%0, 1), varGet(%1) == varSet(%0, 0))
- //
- #define MAX_CONTATOS 100
- #define MAX_CONVERSASP 150
- #define MAX_CONVERSAS 999
- #define ymsg SendClientMessage
- const MAX_DEST_SIZE = 4096;
- const LINE_LENGTH = 33;
- new Conversa[MAX_PLAYERS] = -1;
- new ConveP[MAX_PLAYERS][4];
- new SlotC[MAX_PLAYERS];
- new ModoC[MAX_PLAYERS];
- new PlayerText:ConversandoH1;
- new PlayerText:ConversandoH2;
- new PlayerText:ConversandoH3;
- new PlayerText:ConversandoH4;
- new PlayerText:ConversandoH5;
- enum PlayerinfoI{
- NumeroCLL
- }
- new Player[MAX_PLAYERS][PlayerinfoI];
- new Text:zapText[28];
- new PlayerText:zapTextP[MAX_PLAYERS][8];
- #define D_Escrever 1111
- #define D_NumeroC 2222
- #define D_MenuC 3333
- #define D_Contatos 4444
- #define D_NomeC 5555
- new Text:ConversaText[18];
- new PlayerText:EnviarMsg;
- new PlayerText:yoshiText[MAX_PLAYERS][11];
- main()
- {
- print("\n----------------------------------");
- print(" By yoshi_ PAWN EXPRESS");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- //by Yoshi_ PAWN EXPRESS
- SetGameModeText("by Yoshi PAWN EXPRESS"); // pode retirar aqui :)
- //AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); //tira ele tmb, by yoshi_ tira os creditos nao!
- //nao remove
- zapText[0] = TextDrawCreate(23.000000, 15.000000, "by: Yoshi_~n~EQUIPE:_Pawn_Express._Todos_diretos_reservados!");
- TextDrawFont(zapText[0], 1);
- TextDrawLetterSize(zapText[0], 0.324999, 1.299999);
- TextDrawTextSize(zapText[0], 400.000000, 17.000000);
- TextDrawSetOutline(zapText[0], 1);
- TextDrawSetShadow(zapText[0], 0);
- TextDrawAlignment(zapText[0], 1);
- TextDrawColor(zapText[0], -1);
- TextDrawBackgroundColor(zapText[0], 255);
- TextDrawBoxColor(zapText[0], 50);
- TextDrawUseBox(zapText[0], 0);
- TextDrawSetProportional(zapText[0], 1);
- TextDrawSetSelectable(zapText[0], 0);
- zapText[1] = TextDrawCreate(471.000000, 176.000000, "ld_beat:chit");
- TextDrawFont(zapText[1], 4);
- TextDrawLetterSize(zapText[1], 0.600000, 2.000000);
- TextDrawTextSize(zapText[1], 17.000000, 19.000000);
- TextDrawSetOutline(zapText[1], 1);
- TextDrawSetShadow(zapText[1], 0);
- TextDrawAlignment(zapText[1], 1);
- TextDrawColor(zapText[1], 255);
- TextDrawBackgroundColor(zapText[1], 255);
- TextDrawBoxColor(zapText[1], 50);
- TextDrawUseBox(zapText[1], 1);
- TextDrawSetProportional(zapText[1], 1);
- TextDrawSetSelectable(zapText[1], 0);
- zapText[2] = TextDrawCreate(471.000000, 406.000000, "ld_beat:chit");
- TextDrawFont(zapText[2], 4);
- TextDrawLetterSize(zapText[2], 0.600000, 2.000000);
- TextDrawTextSize(zapText[2], 17.000000, 19.000000);
- TextDrawSetOutline(zapText[2], 1);
- TextDrawSetShadow(zapText[2], 0);
- TextDrawAlignment(zapText[2], 1);
- TextDrawColor(zapText[2], 255);
- TextDrawBackgroundColor(zapText[2], 255);
- TextDrawBoxColor(zapText[2], 50);
- TextDrawUseBox(zapText[2], 1);
- TextDrawSetProportional(zapText[2], 1);
- TextDrawSetSelectable(zapText[2], 0);
- zapText[3] = TextDrawCreate(566.000000, 406.000000, "ld_beat:chit");
- TextDrawFont(zapText[3], 4);
- TextDrawLetterSize(zapText[3], 0.600000, 2.000000);
- TextDrawTextSize(zapText[3], 17.000000, 19.000000);
- TextDrawSetOutline(zapText[3], 1);
- TextDrawSetShadow(zapText[3], 0);
- TextDrawAlignment(zapText[3], 1);
- TextDrawColor(zapText[3], 255);
- TextDrawBackgroundColor(zapText[3], 255);
- TextDrawBoxColor(zapText[3], 50);
- TextDrawUseBox(zapText[3], 1);
- TextDrawSetProportional(zapText[3], 1);
- TextDrawSetSelectable(zapText[3], 0);
- zapText[4] = TextDrawCreate(566.000000, 176.000000, "ld_beat:chit");
- TextDrawFont(zapText[4], 4);
- TextDrawLetterSize(zapText[4], 0.600000, 2.000000);
- TextDrawTextSize(zapText[4], 17.000000, 19.000000);
- TextDrawSetOutline(zapText[4], 1);
- TextDrawSetShadow(zapText[4], 0);
- TextDrawAlignment(zapText[4], 1);
- TextDrawColor(zapText[4], 255);
- TextDrawBackgroundColor(zapText[4], 255);
- TextDrawBoxColor(zapText[4], 50);
- TextDrawUseBox(zapText[4], 1);
- TextDrawSetProportional(zapText[4], 1);
- TextDrawSetSelectable(zapText[4], 0);
- zapText[5] = TextDrawCreate(528.000000, 185.000000, "_");
- TextDrawFont(zapText[5], 1);
- TextDrawLetterSize(zapText[5], 0.600000, -0.899996);
- TextDrawTextSize(zapText[5], 298.500000, 89.000000);
- TextDrawSetOutline(zapText[5], 1);
- TextDrawSetShadow(zapText[5], 0);
- TextDrawAlignment(zapText[5], 2);
- TextDrawColor(zapText[5], -1);
- TextDrawBackgroundColor(zapText[5], 255);
- TextDrawBoxColor(zapText[5], 255);
- TextDrawUseBox(zapText[5], 1);
- TextDrawSetProportional(zapText[5], 1);
- TextDrawSetSelectable(zapText[5], 0);
- zapText[6] = TextDrawCreate(527.000000, 419.000000, "_");
- TextDrawFont(zapText[6], 1);
- TextDrawLetterSize(zapText[6], 0.600000, 0.050002);
- TextDrawTextSize(zapText[6], 298.500000, 93.000000);
- TextDrawSetOutline(zapText[6], 1);
- TextDrawSetShadow(zapText[6], 0);
- TextDrawAlignment(zapText[6], 2);
- TextDrawColor(zapText[6], -1);
- TextDrawBackgroundColor(zapText[6], 255);
- TextDrawBoxColor(zapText[6], 255);
- TextDrawUseBox(zapText[6], 1);
- TextDrawSetProportional(zapText[6], 1);
- TextDrawSetSelectable(zapText[6], 0);
- zapText[7] = TextDrawCreate(522.000000, 189.000000, "_");
- TextDrawFont(zapText[7], 1);
- TextDrawLetterSize(zapText[7], 0.600000, 25.050003);
- TextDrawTextSize(zapText[7], 298.500000, 93.000000);
- TextDrawSetOutline(zapText[7], 1);
- TextDrawSetShadow(zapText[7], 0);
- TextDrawAlignment(zapText[7], 2);
- TextDrawColor(zapText[7], -1);
- TextDrawBackgroundColor(zapText[7], 255);
- TextDrawBoxColor(zapText[7], 255);
- TextDrawUseBox(zapText[7], 1);
- TextDrawSetProportional(zapText[7], 1);
- TextDrawSetSelectable(zapText[7], 0);
- zapText[8] = TextDrawCreate(532.000000, 189.000000, "_");
- TextDrawFont(zapText[8], 1);
- TextDrawLetterSize(zapText[8], 0.600000, 25.050003);
- TextDrawTextSize(zapText[8], 298.500000, 92.500000);
- TextDrawSetOutline(zapText[8], 1);
- TextDrawSetShadow(zapText[8], 0);
- TextDrawAlignment(zapText[8], 2);
- TextDrawColor(zapText[8], -1);
- TextDrawBackgroundColor(zapText[8], 255);
- TextDrawBoxColor(zapText[8], 255);
- TextDrawUseBox(zapText[8], 1);
- TextDrawSetProportional(zapText[8], 1);
- TextDrawSetSelectable(zapText[8], 0);
- zapText[9] = TextDrawCreate(527.000000, 185.000000, "_");
- TextDrawFont(zapText[9], 1);
- TextDrawLetterSize(zapText[9], 0.600000, 0.050002);
- TextDrawTextSize(zapText[9], 298.500000, 93.000000);
- TextDrawSetOutline(zapText[9], 1);
- TextDrawSetShadow(zapText[9], 0);
- TextDrawAlignment(zapText[9], 2);
- TextDrawColor(zapText[9], -1);
- TextDrawBackgroundColor(zapText[9], 255);
- TextDrawBoxColor(zapText[9], 255);
- TextDrawUseBox(zapText[9], 1);
- TextDrawSetProportional(zapText[9], 1);
- TextDrawSetSelectable(zapText[9], 0);
- zapText[10] = TextDrawCreate(527.000000, 189.000000, "_");
- TextDrawFont(zapText[10], 1);
- TextDrawLetterSize(zapText[10], 0.600000, 23.750011);
- TextDrawTextSize(zapText[10], 298.500000, 99.500000);
- TextDrawSetOutline(zapText[10], 1);
- TextDrawSetShadow(zapText[10], 0);
- TextDrawAlignment(zapText[10], 2);
- TextDrawColor(zapText[10], -1);
- TextDrawBackgroundColor(zapText[10], 255);
- TextDrawBoxColor(zapText[10], -1);
- TextDrawUseBox(zapText[10], 1);
- TextDrawSetProportional(zapText[10], 1);
- TextDrawSetSelectable(zapText[10], 0);
- zapText[11] = TextDrawCreate(556.000000, 190.000000, "O");
- TextDrawFont(zapText[11], 1);
- TextDrawLetterSize(zapText[11], 0.195832, 1.100000);
- TextDrawTextSize(zapText[11], 400.000000, 17.000000);
- TextDrawSetOutline(zapText[11], 0);
- TextDrawSetShadow(zapText[11], 0);
- TextDrawAlignment(zapText[11], 1);
- TextDrawColor(zapText[11], 1296911871);
- TextDrawBackgroundColor(zapText[11], 255);
- TextDrawBoxColor(zapText[11], 50);
- TextDrawUseBox(zapText[11], 0);
- TextDrawSetProportional(zapText[11], 1);
- TextDrawSetSelectable(zapText[11], 0);
- zapText[12] = TextDrawCreate(562.000000, 196.000000, "/");
- TextDrawFont(zapText[12], 1);
- TextDrawLetterSize(zapText[12], -0.300000, 0.700000);
- TextDrawTextSize(zapText[12], 400.000000, 17.000000);
- TextDrawSetOutline(zapText[12], 0);
- TextDrawSetShadow(zapText[12], 0);
- TextDrawAlignment(zapText[12], 1);
- TextDrawColor(zapText[12], 1296911871);
- TextDrawBackgroundColor(zapText[12], 255);
- TextDrawBoxColor(zapText[12], 50);
- TextDrawUseBox(zapText[12], 0);
- TextDrawSetProportional(zapText[12], 1);
- TextDrawSetSelectable(zapText[12], 0);
- zapText[13] = TextDrawCreate(478.000000, 190.000000, "ExpressZap");
- TextDrawFont(zapText[13], 1);
- TextDrawLetterSize(zapText[13], 0.195832, 1.100000);
- TextDrawTextSize(zapText[13], 400.000000, 17.000000);
- TextDrawSetOutline(zapText[13], 0);
- TextDrawSetShadow(zapText[13], 0);
- TextDrawAlignment(zapText[13], 1);
- TextDrawColor(zapText[13], 1296911871);
- TextDrawBackgroundColor(zapText[13], 255);
- TextDrawBoxColor(zapText[13], 50);
- TextDrawUseBox(zapText[13], 0);
- TextDrawSetProportional(zapText[13], 1);
- TextDrawSetSelectable(zapText[13], 0);
- zapText[14] = TextDrawCreate(572.000000, 190.000000, ".~n~.~n~.");
- TextDrawFont(zapText[14], 1);
- TextDrawLetterSize(zapText[14], 0.233332, 0.350000);
- TextDrawTextSize(zapText[14], 400.000000, 17.000000);
- TextDrawSetOutline(zapText[14], 0);
- TextDrawSetShadow(zapText[14], 0);
- TextDrawAlignment(zapText[14], 2);
- TextDrawColor(zapText[14], 1296911871);
- TextDrawBackgroundColor(zapText[14], 255);
- TextDrawBoxColor(zapText[14], 50);
- TextDrawUseBox(zapText[14], 0);
- TextDrawSetProportional(zapText[14], 1);
- TextDrawSetSelectable(zapText[14], 0);
- zapText[15] = TextDrawCreate(527.000000, 189.000000, "_");
- TextDrawFont(zapText[15], 1);
- TextDrawLetterSize(zapText[15], 0.600000, 2.900011);
- TextDrawTextSize(zapText[15], 298.500000, 99.500000);
- TextDrawSetOutline(zapText[15], 1);
- TextDrawSetShadow(zapText[15], 0);
- TextDrawAlignment(zapText[15], 2);
- TextDrawColor(zapText[15], -1);
- TextDrawBackgroundColor(zapText[15], 255);
- TextDrawBoxColor(zapText[15], 421075455);
- TextDrawUseBox(zapText[15], 1);
- TextDrawSetProportional(zapText[15], 1);
- TextDrawSetSelectable(zapText[15], 0);
- zapText[16] = TextDrawCreate(495.000000, 209.000000, "Conversas");
- TextDrawFont(zapText[16], 1);
- TextDrawLetterSize(zapText[16], 0.212499, 0.849999);
- TextDrawTextSize(zapText[16], 16.500000, 35.500000);
- TextDrawSetOutline(zapText[16], 0);
- TextDrawSetShadow(zapText[16], 0);
- TextDrawAlignment(zapText[16], 2);
- TextDrawColor(zapText[16], -1);
- TextDrawBackgroundColor(zapText[16], 255);
- TextDrawBoxColor(zapText[16], 200);
- TextDrawUseBox(zapText[16], 0);
- TextDrawSetProportional(zapText[16], 1);
- TextDrawSetSelectable(zapText[16], 1);
- zapText[17] = TextDrawCreate(561.000000, 209.000000, "Contatos");
- TextDrawFont(zapText[17], 1);
- TextDrawLetterSize(zapText[17], 0.212499, 0.849999);
- TextDrawTextSize(zapText[17], 16.500000, 35.500000);
- TextDrawSetOutline(zapText[17], 0);
- TextDrawSetShadow(zapText[17], 0);
- TextDrawAlignment(zapText[17], 2);
- TextDrawColor(zapText[17], -1);
- TextDrawBackgroundColor(zapText[17], 255);
- TextDrawBoxColor(zapText[17], 200);
- TextDrawUseBox(zapText[17], 0);
- TextDrawSetProportional(zapText[17], 1);
- TextDrawSetSelectable(zapText[17], 1);
- zapText[18] = TextDrawCreate(477.000000, 222.000000, "ld_beat:chit");
- TextDrawFont(zapText[18], 4);
- TextDrawLetterSize(zapText[18], 0.600000, 2.000000);
- TextDrawTextSize(zapText[18], 17.000000, 19.000000);
- TextDrawSetOutline(zapText[18], 1);
- TextDrawSetShadow(zapText[18], 0);
- TextDrawAlignment(zapText[18], 1);
- TextDrawColor(zapText[18], 255);
- TextDrawBackgroundColor(zapText[18], 255);
- TextDrawBoxColor(zapText[18], 50);
- TextDrawUseBox(zapText[18], 1);
- TextDrawSetProportional(zapText[18], 1);
- TextDrawSetSelectable(zapText[18], 0);
- zapText[19] = TextDrawCreate(472.000000, 236.000000, "ld_beat:chit");
- TextDrawFont(zapText[19], 4);
- TextDrawLetterSize(zapText[19], 0.600000, 2.000000);
- TextDrawTextSize(zapText[19], 27.500000, 13.500000);
- TextDrawSetOutline(zapText[19], 1);
- TextDrawSetShadow(zapText[19], 0);
- TextDrawAlignment(zapText[19], 1);
- TextDrawColor(zapText[19], 255);
- TextDrawBackgroundColor(zapText[19], 255);
- TextDrawBoxColor(zapText[19], 50);
- TextDrawUseBox(zapText[19], 1);
- TextDrawSetProportional(zapText[19], 1);
- TextDrawSetSelectable(zapText[19], 0);
- zapText[20] = TextDrawCreate(477.000000, 259.000000, "ld_beat:chit");
- TextDrawFont(zapText[20], 4);
- TextDrawLetterSize(zapText[20], 0.600000, 2.000000);
- TextDrawTextSize(zapText[20], 17.000000, 19.000000);
- TextDrawSetOutline(zapText[20], 1);
- TextDrawSetShadow(zapText[20], 0);
- TextDrawAlignment(zapText[20], 1);
- TextDrawColor(zapText[20], 255);
- TextDrawBackgroundColor(zapText[20], 255);
- TextDrawBoxColor(zapText[20], 50);
- TextDrawUseBox(zapText[20], 1);
- TextDrawSetProportional(zapText[20], 1);
- TextDrawSetSelectable(zapText[20], 0);
- zapText[21] = TextDrawCreate(472.000000, 273.000000, "ld_beat:chit");
- TextDrawFont(zapText[21], 4);
- TextDrawLetterSize(zapText[21], 0.600000, 2.000000);
- TextDrawTextSize(zapText[21], 27.500000, 13.500000);
- TextDrawSetOutline(zapText[21], 1);
- TextDrawSetShadow(zapText[21], 0);
- TextDrawAlignment(zapText[21], 1);
- TextDrawColor(zapText[21], 255);
- TextDrawBackgroundColor(zapText[21], 255);
- TextDrawBoxColor(zapText[21], 50);
- TextDrawUseBox(zapText[21], 1);
- TextDrawSetProportional(zapText[21], 1);
- TextDrawSetSelectable(zapText[21], 0);
- zapText[22] = TextDrawCreate(477.000000, 292.000000, "ld_beat:chit");
- TextDrawFont(zapText[22], 4);
- TextDrawLetterSize(zapText[22], 0.600000, 2.000000);
- TextDrawTextSize(zapText[22], 17.000000, 19.000000);
- TextDrawSetOutline(zapText[22], 1);
- TextDrawSetShadow(zapText[22], 0);
- TextDrawAlignment(zapText[22], 1);
- TextDrawColor(zapText[22], 255);
- TextDrawBackgroundColor(zapText[22], 255);
- TextDrawBoxColor(zapText[22], 50);
- TextDrawUseBox(zapText[22], 1);
- TextDrawSetProportional(zapText[22], 1);
- TextDrawSetSelectable(zapText[22], 0);
- zapText[23] = TextDrawCreate(472.000000, 306.000000, "ld_beat:chit");
- TextDrawFont(zapText[23], 4);
- TextDrawLetterSize(zapText[23], 0.600000, 2.000000);
- TextDrawTextSize(zapText[23], 27.500000, 13.500000);
- TextDrawSetOutline(zapText[23], 1);
- TextDrawSetShadow(zapText[23], 0);
- TextDrawAlignment(zapText[23], 1);
- TextDrawColor(zapText[23], 255);
- TextDrawBackgroundColor(zapText[23], 255);
- TextDrawBoxColor(zapText[23], 50);
- TextDrawUseBox(zapText[23], 1);
- TextDrawSetProportional(zapText[23], 1);
- TextDrawSetSelectable(zapText[23], 0);
- zapText[24] = TextDrawCreate(477.000000, 326.000000, "ld_beat:chit");
- TextDrawFont(zapText[24], 4);
- TextDrawLetterSize(zapText[24], 0.600000, 2.000000);
- TextDrawTextSize(zapText[24], 17.000000, 19.000000);
- TextDrawSetOutline(zapText[24], 1);
- TextDrawSetShadow(zapText[24], 0);
- TextDrawAlignment(zapText[24], 1);
- TextDrawColor(zapText[24], 255);
- TextDrawBackgroundColor(zapText[24], 255);
- TextDrawBoxColor(zapText[24], 50);
- TextDrawUseBox(zapText[24], 1);
- TextDrawSetProportional(zapText[24], 1);
- TextDrawSetSelectable(zapText[24], 0);
- zapText[25] = TextDrawCreate(472.000000, 340.000000, "ld_beat:chit");
- TextDrawFont(zapText[25], 4);
- TextDrawLetterSize(zapText[25], 0.600000, 2.000000);
- TextDrawTextSize(zapText[25], 27.500000, 13.500000);
- TextDrawSetOutline(zapText[25], 1);
- TextDrawSetShadow(zapText[25], 0);
- TextDrawAlignment(zapText[25], 1);
- TextDrawColor(zapText[25], 255);
- TextDrawBackgroundColor(zapText[25], 255);
- TextDrawBoxColor(zapText[25], 50);
- TextDrawUseBox(zapText[25], 1);
- TextDrawSetProportional(zapText[25], 1);
- TextDrawSetSelectable(zapText[25], 0);
- zapText[26] = TextDrawCreate(485.000000, 381.000000, "V"); //descer ctts
- TextDrawFont(zapText[26], 1);
- TextDrawLetterSize(zapText[26], 0.354166, 1.300000);
- TextDrawTextSize(zapText[26], 16.500000, 11.000000);
- TextDrawSetOutline(zapText[26], 1);
- TextDrawSetShadow(zapText[26], 0);
- TextDrawAlignment(zapText[26], 2);
- TextDrawColor(zapText[26], -1);
- TextDrawBackgroundColor(zapText[26], 255);
- TextDrawBoxColor(zapText[26], 255);
- TextDrawUseBox(zapText[26], 1);
- TextDrawSetProportional(zapText[26], 1);
- TextDrawSetSelectable(zapText[26], 1);
- zapText[27] = TextDrawCreate(569.000000, 381.000000, "A"); //subir ctts
- TextDrawFont(zapText[27], 1);
- TextDrawLetterSize(zapText[27], 0.354166, 1.300000);
- TextDrawTextSize(zapText[27], 16.500000, 11.000000);
- TextDrawSetOutline(zapText[27], 1);
- TextDrawSetShadow(zapText[27], 0);
- TextDrawAlignment(zapText[27], 2);
- TextDrawColor(zapText[27], -1);
- TextDrawBackgroundColor(zapText[27], 255);
- TextDrawBoxColor(zapText[27], 255);
- TextDrawUseBox(zapText[27], 1);
- TextDrawSetProportional(zapText[27], 1);
- TextDrawSetSelectable(zapText[27], 1);
- ConversaText[0] = TextDrawCreate(23.000000, 15.000000, "by: Yoshi_~n~EQUIPE:_Pawn_Express._Todos_diretos_reservados!");
- TextDrawFont(ConversaText[0], 1);
- TextDrawLetterSize(ConversaText[0], 0.324999, 1.299998);
- TextDrawTextSize(ConversaText[0], 400.000000, 17.000000);
- TextDrawSetOutline(ConversaText[0], 1);
- TextDrawSetShadow(ConversaText[0], 0);
- TextDrawAlignment(ConversaText[0], 1);
- TextDrawColor(ConversaText[0], -1);
- TextDrawBackgroundColor(ConversaText[0], 255);
- TextDrawBoxColor(ConversaText[0], 50);
- TextDrawUseBox(ConversaText[0], 0);
- TextDrawSetProportional(ConversaText[0], 1);
- TextDrawSetSelectable(ConversaText[0], 0);
- ConversaText[1] = TextDrawCreate(471.000000, 176.000000, "ld_beat:chit");
- TextDrawFont(ConversaText[1], 4);
- TextDrawLetterSize(ConversaText[1], 0.600000, 2.000000);
- TextDrawTextSize(ConversaText[1], 17.000000, 19.000000);
- TextDrawSetOutline(ConversaText[1], 1);
- TextDrawSetShadow(ConversaText[1], 0);
- TextDrawAlignment(ConversaText[1], 1);
- TextDrawColor(ConversaText[1], 255);
- TextDrawBackgroundColor(ConversaText[1], 255);
- TextDrawBoxColor(ConversaText[1], 50);
- TextDrawUseBox(ConversaText[1], 1);
- TextDrawSetProportional(ConversaText[1], 1);
- TextDrawSetSelectable(ConversaText[1], 0);
- ConversaText[2] = TextDrawCreate(471.000000, 406.000000, "ld_beat:chit");
- TextDrawFont(ConversaText[2], 4);
- TextDrawLetterSize(ConversaText[2], 0.600000, 2.000000);
- TextDrawTextSize(ConversaText[2], 17.000000, 19.000000);
- TextDrawSetOutline(ConversaText[2], 1);
- TextDrawSetShadow(ConversaText[2], 0);
- TextDrawAlignment(ConversaText[2], 1);
- TextDrawColor(ConversaText[2], 255);
- TextDrawBackgroundColor(ConversaText[2], 255);
- TextDrawBoxColor(ConversaText[2], 50);
- TextDrawUseBox(ConversaText[2], 1);
- TextDrawSetProportional(ConversaText[2], 1);
- TextDrawSetSelectable(ConversaText[2], 0);
- ConversaText[3] = TextDrawCreate(566.000000, 406.000000, "ld_beat:chit");
- TextDrawFont(ConversaText[3], 4);
- TextDrawLetterSize(ConversaText[3], 0.600000, 2.000000);
- TextDrawTextSize(ConversaText[3], 17.000000, 19.000000);
- TextDrawSetOutline(ConversaText[3], 1);
- TextDrawSetShadow(ConversaText[3], 0);
- TextDrawAlignment(ConversaText[3], 1);
- TextDrawColor(ConversaText[3], 255);
- TextDrawBackgroundColor(ConversaText[3], 255);
- TextDrawBoxColor(ConversaText[3], 50);
- TextDrawUseBox(ConversaText[3], 1);
- TextDrawSetProportional(ConversaText[3], 1);
- TextDrawSetSelectable(ConversaText[3], 0);
- ConversaText[4] = TextDrawCreate(566.000000, 176.000000, "ld_beat:chit");
- TextDrawFont(ConversaText[4], 4);
- TextDrawLetterSize(ConversaText[4], 0.600000, 2.000000);
- TextDrawTextSize(ConversaText[4], 17.000000, 19.000000);
- TextDrawSetOutline(ConversaText[4], 1);
- TextDrawSetShadow(ConversaText[4], 0);
- TextDrawAlignment(ConversaText[4], 1);
- TextDrawColor(ConversaText[4], 255);
- TextDrawBackgroundColor(ConversaText[4], 255);
- TextDrawBoxColor(ConversaText[4], 50);
- TextDrawUseBox(ConversaText[4], 1);
- TextDrawSetProportional(ConversaText[4], 1);
- TextDrawSetSelectable(ConversaText[4], 0);
- ConversaText[5] = TextDrawCreate(528.000000, 185.000000, "_");
- TextDrawFont(ConversaText[5], 1);
- TextDrawLetterSize(ConversaText[5], 0.600000, -0.899995);
- TextDrawTextSize(ConversaText[5], 298.500000, 89.000000);
- TextDrawSetOutline(ConversaText[5], 1);
- TextDrawSetShadow(ConversaText[5], 0);
- TextDrawAlignment(ConversaText[5], 2);
- TextDrawColor(ConversaText[5], -1);
- TextDrawBackgroundColor(ConversaText[5], 255);
- TextDrawBoxColor(ConversaText[5], 255);
- TextDrawUseBox(ConversaText[5], 1);
- TextDrawSetProportional(ConversaText[5], 1);
- TextDrawSetSelectable(ConversaText[5], 0);
- ConversaText[6] = TextDrawCreate(527.000000, 419.000000, "_");
- TextDrawFont(ConversaText[6], 1);
- TextDrawLetterSize(ConversaText[6], 0.600000, 0.050002);
- TextDrawTextSize(ConversaText[6], 298.500000, 93.000000);
- TextDrawSetOutline(ConversaText[6], 1);
- TextDrawSetShadow(ConversaText[6], 0);
- TextDrawAlignment(ConversaText[6], 2);
- TextDrawColor(ConversaText[6], -1);
- TextDrawBackgroundColor(ConversaText[6], 255);
- TextDrawBoxColor(ConversaText[6], 255);
- TextDrawUseBox(ConversaText[6], 1);
- TextDrawSetProportional(ConversaText[6], 1);
- TextDrawSetSelectable(ConversaText[6], 0);
- ConversaText[7] = TextDrawCreate(522.000000, 189.000000, "_");
- TextDrawFont(ConversaText[7], 1);
- TextDrawLetterSize(ConversaText[7], 0.600000, 25.050003);
- TextDrawTextSize(ConversaText[7], 298.500000, 93.000000);
- TextDrawSetOutline(ConversaText[7], 1);
- TextDrawSetShadow(ConversaText[7], 0);
- TextDrawAlignment(ConversaText[7], 2);
- TextDrawColor(ConversaText[7], -1);
- TextDrawBackgroundColor(ConversaText[7], 255);
- TextDrawBoxColor(ConversaText[7], 255);
- TextDrawUseBox(ConversaText[7], 1);
- TextDrawSetProportional(ConversaText[7], 1);
- TextDrawSetSelectable(ConversaText[7], 0);
- ConversaText[8] = TextDrawCreate(532.000000, 189.000000, "_");
- TextDrawFont(ConversaText[8], 1);
- TextDrawLetterSize(ConversaText[8], 0.600000, 25.050003);
- TextDrawTextSize(ConversaText[8], 298.500000, 92.500000);
- TextDrawSetOutline(ConversaText[8], 1);
- TextDrawSetShadow(ConversaText[8], 0);
- TextDrawAlignment(ConversaText[8], 2);
- TextDrawColor(ConversaText[8], -1);
- TextDrawBackgroundColor(ConversaText[8], 255);
- TextDrawBoxColor(ConversaText[8], 255);
- TextDrawUseBox(ConversaText[8], 1);
- TextDrawSetProportional(ConversaText[8], 1);
- TextDrawSetSelectable(ConversaText[8], 0);
- ConversaText[9] = TextDrawCreate(527.000000, 185.000000, "_");
- TextDrawFont(ConversaText[9], 1);
- TextDrawLetterSize(ConversaText[9], 0.600000, 0.050002);
- TextDrawTextSize(ConversaText[9], 298.500000, 93.000000);
- TextDrawSetOutline(ConversaText[9], 1);
- TextDrawSetShadow(ConversaText[9], 0);
- TextDrawAlignment(ConversaText[9], 2);
- TextDrawColor(ConversaText[9], -1);
- TextDrawBackgroundColor(ConversaText[9], 255);
- TextDrawBoxColor(ConversaText[9], 255);
- TextDrawUseBox(ConversaText[9], 1);
- TextDrawSetProportional(ConversaText[9], 1);
- TextDrawSetSelectable(ConversaText[9], 0);
- ConversaText[10] = TextDrawCreate(527.000000, 189.000000, "_");
- TextDrawFont(ConversaText[10], 1);
- TextDrawLetterSize(ConversaText[10], 0.600000, 23.750011);
- TextDrawTextSize(ConversaText[10], 298.500000, 99.500000);
- TextDrawSetOutline(ConversaText[10], 1);
- TextDrawSetShadow(ConversaText[10], 0);
- TextDrawAlignment(ConversaText[10], 2);
- TextDrawColor(ConversaText[10], -1);
- TextDrawBackgroundColor(ConversaText[10], 255);
- TextDrawBoxColor(ConversaText[10], -1061109505);
- TextDrawUseBox(ConversaText[10], 1);
- TextDrawSetProportional(ConversaText[10], 1);
- TextDrawSetSelectable(ConversaText[10], 0);
- ConversaText[11] = TextDrawCreate(527.000000, 189.000000, "_");
- TextDrawFont(ConversaText[11], 1);
- TextDrawLetterSize(ConversaText[11], 0.600000, 2.550009);
- TextDrawTextSize(ConversaText[11], 298.500000, 99.500000);
- TextDrawSetOutline(ConversaText[11], 1);
- TextDrawSetShadow(ConversaText[11], 0);
- TextDrawAlignment(ConversaText[11], 2);
- TextDrawColor(ConversaText[11], -1);
- TextDrawBackgroundColor(ConversaText[11], 255);
- TextDrawBoxColor(ConversaText[11], 673720575);
- TextDrawUseBox(ConversaText[11], 1);
- TextDrawSetProportional(ConversaText[11], 1);
- TextDrawSetSelectable(ConversaText[11], 0);
- ConversaText[12] = TextDrawCreate(485.000000, 187.000000, "ld_pool:ball");
- TextDrawFont(ConversaText[12], 4);
- TextDrawLetterSize(ConversaText[12], 0.600000, 2.000000);
- TextDrawTextSize(ConversaText[12], 23.000000, 25.500000);
- TextDrawSetOutline(ConversaText[12], 1);
- TextDrawSetShadow(ConversaText[12], 0);
- TextDrawAlignment(ConversaText[12], 1);
- TextDrawColor(ConversaText[12], 1296911871);
- TextDrawBackgroundColor(ConversaText[12], 255);
- TextDrawBoxColor(ConversaText[12], 50);
- TextDrawUseBox(ConversaText[12], 1);
- TextDrawSetProportional(ConversaText[12], 1);
- TextDrawSetSelectable(ConversaText[12], 0);
- ConversaText[13] = TextDrawCreate(491.000000, 188.000000, "ld_pool:ball");
- TextDrawFont(ConversaText[13], 4);
- TextDrawLetterSize(ConversaText[13], 0.600000, 2.000000);
- TextDrawTextSize(ConversaText[13], 11.000000, 12.000000);
- TextDrawSetOutline(ConversaText[13], 1);
- TextDrawSetShadow(ConversaText[13], 0);
- TextDrawAlignment(ConversaText[13], 1);
- TextDrawColor(ConversaText[13], 255);
- TextDrawBackgroundColor(ConversaText[13], 255);
- TextDrawBoxColor(ConversaText[13], 50);
- TextDrawUseBox(ConversaText[13], 1);
- TextDrawSetProportional(ConversaText[13], 1);
- TextDrawSetSelectable(ConversaText[13], 0);
- ConversaText[14] = TextDrawCreate(488.000000, 201.000000, "ld_pool:ball");
- TextDrawFont(ConversaText[14], 4);
- TextDrawLetterSize(ConversaText[14], 0.600000, 2.000000);
- TextDrawTextSize(ConversaText[14], 17.500000, 8.500000);
- TextDrawSetOutline(ConversaText[14], 1);
- TextDrawSetShadow(ConversaText[14], 0);
- TextDrawAlignment(ConversaText[14], 1);
- TextDrawColor(ConversaText[14], 255);
- TextDrawBackgroundColor(ConversaText[14], 255);
- TextDrawBoxColor(ConversaText[14], 50);
- TextDrawUseBox(ConversaText[14], 1);
- TextDrawSetProportional(ConversaText[14], 1);
- TextDrawSetSelectable(ConversaText[14], 0);
- ConversaText[15] = TextDrawCreate(480.000000, 196.000000, "<");
- TextDrawFont(ConversaText[15], 2);
- TextDrawLetterSize(ConversaText[15], 0.204163, 1.000000);
- TextDrawTextSize(ConversaText[15], 16.500000, 4.500000);
- TextDrawSetOutline(ConversaText[15], 0);
- TextDrawSetShadow(ConversaText[15], 0);
- TextDrawAlignment(ConversaText[15], 2);
- TextDrawColor(ConversaText[15], 255);
- TextDrawBackgroundColor(ConversaText[15], 255);
- TextDrawBoxColor(ConversaText[15], 200);
- TextDrawUseBox(ConversaText[15], 0);
- TextDrawSetProportional(ConversaText[15], 1);
- TextDrawSetSelectable(ConversaText[15], 1);
- ConversaText[16] = TextDrawCreate(477.000000, 215.000000, "PAWN_EXPRESS~N~PAWN_EXPRESS~N~PAWN_EXPRESS~N~PAWN_EXPRESS~N~PAWN_EXPRESS~N~PAWN_EXPRESS");
- TextDrawFont(ConversaText[16], 2);
- TextDrawLetterSize(ConversaText[16], 0.324999, 2.000000);
- TextDrawTextSize(ConversaText[16], 400.000000, 17.000000);
- TextDrawSetOutline(ConversaText[16], 0);
- TextDrawSetShadow(ConversaText[16], 0);
- TextDrawAlignment(ConversaText[16], 1);
- TextDrawColor(ConversaText[16], 1296911646);
- TextDrawBackgroundColor(ConversaText[16], 255);
- TextDrawBoxColor(ConversaText[16], 50);
- TextDrawUseBox(ConversaText[16], 0);
- TextDrawSetProportional(ConversaText[16], 1);
- TextDrawSetSelectable(ConversaText[16], 0);
- ConversaText[17] = TextDrawCreate(477.000000, 321.000000, "PAWN_EXPRESS~n~PAWN_EXPRESS~n~PAWN_EXPRESS~n~PAWN_EXPRESS~n~PAWN_EXPRESS~n~");
- TextDrawFont(ConversaText[17], 2);
- TextDrawLetterSize(ConversaText[17], 0.324999, 1.850000);
- TextDrawTextSize(ConversaText[17], 400.000000, 17.000000);
- TextDrawSetOutline(ConversaText[17], 0);
- TextDrawSetShadow(ConversaText[17], 0);
- TextDrawAlignment(ConversaText[17], 1);
- TextDrawColor(ConversaText[17], 1296911646);
- TextDrawBackgroundColor(ConversaText[17], 255);
- TextDrawBoxColor(ConversaText[17], 50);
- TextDrawUseBox(ConversaText[17], 0);
- TextDrawSetProportional(ConversaText[17], 1);
- TextDrawSetSelectable(ConversaText[17], 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new String[128], pZap[90], pCon[90], pNum[90];
- format(pNum, 90, "WhatsApp/Numeros/%s.ini", pName(playerid));
- if(!dini_Exists(pNum))
- {
- dini_Create(pNum);
- dini_IntSet(pNum, "Numero", -1);
- Player[playerid][NumeroCLL] = dini_Int(pNum, "Numero");
- }
- else{
- Player[playerid][NumeroCLL] = dini_Int(pNum, "Numero");
- }
- format(pZap, 90, "WhatsApp/ConversasP/%s.ini", pName(playerid));
- if(!dini_Exists(pZap))
- {
- dini_Create(pZap);
- for(new i = 0; i < MAX_CONVERSASP; i++) {
- format(String, 128, "Conversa%i", i);
- dini_IntSet(pZap, String, -1);
- }
- }
- format(pCon, 90, "WhatsApp/Contatos/%s.ini", pName(playerid));
- if(!dini_Exists(pCon))
- {
- dini_Create(pCon);
- for(new C = 0; C < MAX_CONTATOS; C++) {
- format(String, 128, "NumeroContato%i", C);
- dini_IntSet(pCon, String, 0);
- format(String, 128, "pContato%i", C);
- dini_Set(pCon, String, "Ninguem");
- format(String, 128, "NomeContato%i", C);
- dini_Set(pCon, String, "Ninguem");
- SlotC[playerid] = -1;
- }
- }
- yoshiText[playerid][0] = CreatePlayerTextDraw(playerid, 509.000000, 191.000000, "Yoshi_pawn_express");
- PlayerTextDrawFont(playerid, yoshiText[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][0], 0.204162, 0.849999);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][0], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][0], 0);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][0], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][0], 1);
- PlayerTextDrawColor(playerid, yoshiText[playerid][0], -1);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][0], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][0], 50);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][0], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][0], 0);
- yoshiText[playerid][1] = CreatePlayerTextDraw(playerid, 528.000000, 219.000000, "_");
- PlayerTextDrawFont(playerid, yoshiText[playerid][1], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][1], 0.600000, 2.550009);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][1], 298.500000, 96.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][1], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][1], 2);
- PlayerTextDrawColor(playerid, yoshiText[playerid][1], -1);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][1], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][1], -764862721);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][1], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][1], 1);
- yoshiText[playerid][2] = CreatePlayerTextDraw(playerid, 528.000000, 248.000000, "_");
- PlayerTextDrawFont(playerid, yoshiText[playerid][2], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][2], 0.600000, 2.550009);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][2], 298.500000, 96.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][2], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][2], 2);
- PlayerTextDrawColor(playerid, yoshiText[playerid][2], -1);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][2], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][2], -764862721);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][2], 1);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][2], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][2], 0);
- yoshiText[playerid][3] = CreatePlayerTextDraw(playerid, 528.000000, 278.000000, "_");
- PlayerTextDrawFont(playerid, yoshiText[playerid][3], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][3], 0.600000, 2.550009);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][3], 298.500000, 96.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][3], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][3], 2);
- PlayerTextDrawColor(playerid, yoshiText[playerid][3], -1);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][3], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][3], -764862721);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][3], 1);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][3], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][3], 0);
- yoshiText[playerid][4] = CreatePlayerTextDraw(playerid, 528.000000, 308.000000, "_");
- PlayerTextDrawFont(playerid, yoshiText[playerid][4], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][4], 0.600000, 2.550009);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][4], 298.500000, 96.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][4], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][4], 2);
- PlayerTextDrawColor(playerid, yoshiText[playerid][4], -1);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][4], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][4], -764862721);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][4], 1);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][4], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][4], 0);
- yoshiText[playerid][5] = CreatePlayerTextDraw(playerid, 528.000000, 338.000000, "_");
- PlayerTextDrawFont(playerid, yoshiText[playerid][5], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][5], 0.600000, 2.550009);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][5], 298.500000, 96.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][5], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][5], 2);
- PlayerTextDrawColor(playerid, yoshiText[playerid][5], -1);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][5], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][5], -764862721);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][5], 1);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][5], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][5], 0);
- yoshiText[playerid][6] = CreatePlayerTextDraw(playerid, 479.000000, 219.000000, " ");
- PlayerTextDrawFont(playerid, yoshiText[playerid][6], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][6], 0.191662, 0.849999);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][6], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][6], 0);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][6], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][6], 1);
- PlayerTextDrawColor(playerid, yoshiText[playerid][6], 255);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][6], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][6], 50);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][6], 0);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][6], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][6], 0);
- yoshiText[playerid][7] = CreatePlayerTextDraw(playerid, 479.000000, 248.000000, " ");
- PlayerTextDrawFont(playerid, yoshiText[playerid][7], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][7], 0.191662, 0.849999);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][7], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][7], 0);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][7], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][7], 1);
- PlayerTextDrawColor(playerid, yoshiText[playerid][7], 255);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][7], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][7], 50);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][7], 0);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][7], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][7], 0);
- yoshiText[playerid][8] = CreatePlayerTextDraw(playerid, 479.000000, 278.000000, " ");
- PlayerTextDrawFont(playerid, yoshiText[playerid][8], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][8], 0.191662, 0.849999);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][8], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][8], 0);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][8], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][8], 1);
- PlayerTextDrawColor(playerid, yoshiText[playerid][8], 255);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][8], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][8], 50);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][8], 0);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][8], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][8], 0);
- yoshiText[playerid][9] = CreatePlayerTextDraw(playerid, 479.000000, 308.000000, " ");
- PlayerTextDrawFont(playerid, yoshiText[playerid][9], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][9], 0.191662, 0.849999);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][9], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][9], 0);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][9], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][9], 1);
- PlayerTextDrawColor(playerid, yoshiText[playerid][9], 255);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][9], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][9], 50);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][9], 0);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][9], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][9], 0);
- yoshiText[playerid][10] = CreatePlayerTextDraw(playerid, 479.000000, 337.000000, " ");
- PlayerTextDrawFont(playerid, yoshiText[playerid][10], 1);
- PlayerTextDrawLetterSize(playerid, yoshiText[playerid][10], 0.191662, 0.849999);
- PlayerTextDrawTextSize(playerid, yoshiText[playerid][10], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, yoshiText[playerid][10], 0);
- PlayerTextDrawSetShadow(playerid, yoshiText[playerid][10], 0);
- PlayerTextDrawAlignment(playerid, yoshiText[playerid][10], 1);
- PlayerTextDrawColor(playerid, yoshiText[playerid][10], 255);
- PlayerTextDrawBackgroundColor(playerid, yoshiText[playerid][10], 255);
- PlayerTextDrawBoxColor(playerid, yoshiText[playerid][10], 50);
- PlayerTextDrawUseBox(playerid, yoshiText[playerid][10], 0);
- PlayerTextDrawSetProportional(playerid, yoshiText[playerid][10], 1);
- PlayerTextDrawSetSelectable(playerid, yoshiText[playerid][10], 0);
- ConversandoH1 = CreatePlayerTextDraw(playerid, 560.000000, 236.000000, "00:00");
- PlayerTextDrawFont(playerid, ConversandoH1, 1);
- PlayerTextDrawLetterSize(playerid, ConversandoH1, 0.166662, 0.749998);
- PlayerTextDrawTextSize(playerid, ConversandoH1, 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, ConversandoH1, 0);
- PlayerTextDrawSetShadow(playerid, ConversandoH1, 0);
- PlayerTextDrawAlignment(playerid, ConversandoH1, 1);
- PlayerTextDrawColor(playerid, ConversandoH1, 255);
- PlayerTextDrawBackgroundColor(playerid, ConversandoH1, 255);
- PlayerTextDrawBoxColor(playerid, ConversandoH1, 50);
- PlayerTextDrawUseBox(playerid, ConversandoH1, 0);
- PlayerTextDrawSetProportional(playerid, ConversandoH1, 1);
- PlayerTextDrawSetSelectable(playerid, ConversandoH1, 0);
- ConversandoH2 = CreatePlayerTextDraw(playerid, 560.000000, 266.000000, "00:00");
- PlayerTextDrawFont(playerid, ConversandoH2, 1);
- PlayerTextDrawLetterSize(playerid, ConversandoH2, 0.166662, 0.749998);
- PlayerTextDrawTextSize(playerid, ConversandoH2, 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, ConversandoH2, 0);
- PlayerTextDrawSetShadow(playerid, ConversandoH2, 0);
- PlayerTextDrawAlignment(playerid, ConversandoH2, 1);
- PlayerTextDrawColor(playerid, ConversandoH2, 255);
- PlayerTextDrawBackgroundColor(playerid, ConversandoH2, 255);
- PlayerTextDrawBoxColor(playerid, ConversandoH2, 50);
- PlayerTextDrawUseBox(playerid, ConversandoH2, 0);
- PlayerTextDrawSetProportional(playerid, ConversandoH2, 1);
- PlayerTextDrawSetSelectable(playerid, ConversandoH2, 0);
- ConversandoH3 = CreatePlayerTextDraw(playerid, 560.000000, 296.000000, "00:00");
- PlayerTextDrawFont(playerid, ConversandoH3, 1);
- PlayerTextDrawLetterSize(playerid, ConversandoH3, 0.166662, 0.749998);
- PlayerTextDrawTextSize(playerid, ConversandoH3, 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, ConversandoH3, 0);
- PlayerTextDrawSetShadow(playerid, ConversandoH3, 0);
- PlayerTextDrawAlignment(playerid, ConversandoH3, 1);
- PlayerTextDrawColor(playerid, ConversandoH3, 255);
- PlayerTextDrawBackgroundColor(playerid, ConversandoH3, 255);
- PlayerTextDrawBoxColor(playerid, ConversandoH3, 50);
- PlayerTextDrawUseBox(playerid, ConversandoH3, 0);
- PlayerTextDrawSetProportional(playerid, ConversandoH3, 1);
- PlayerTextDrawSetSelectable(playerid, ConversandoH3, 0);
- ConversandoH4 = CreatePlayerTextDraw(playerid, 560.000000, 326.000000, "00:00");
- PlayerTextDrawFont(playerid, ConversandoH4, 1);
- PlayerTextDrawLetterSize(playerid, ConversandoH4, 0.166662, 0.749998);
- PlayerTextDrawTextSize(playerid, ConversandoH4, 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, ConversandoH4, 0);
- PlayerTextDrawSetShadow(playerid, ConversandoH4, 0);
- PlayerTextDrawAlignment(playerid, ConversandoH4, 1);
- PlayerTextDrawColor(playerid, ConversandoH4, 255);
- PlayerTextDrawBackgroundColor(playerid, ConversandoH4, 255);
- PlayerTextDrawBoxColor(playerid, ConversandoH4, 50);
- PlayerTextDrawUseBox(playerid, ConversandoH4, 0);
- PlayerTextDrawSetProportional(playerid, ConversandoH4, 1);
- PlayerTextDrawSetSelectable(playerid, ConversandoH4, 0);
- ConversandoH5 = CreatePlayerTextDraw(playerid, 560.000000, 356.000000, "00:00");
- PlayerTextDrawFont(playerid, ConversandoH5, 1);
- PlayerTextDrawLetterSize(playerid, ConversandoH5, 0.166662, 0.749998);
- PlayerTextDrawTextSize(playerid, ConversandoH5, 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, ConversandoH5, 0);
- PlayerTextDrawSetShadow(playerid, ConversandoH5, 0);
- PlayerTextDrawAlignment(playerid, ConversandoH5, 1);
- PlayerTextDrawColor(playerid, ConversandoH5, 255);
- PlayerTextDrawBackgroundColor(playerid, ConversandoH5, 255);
- PlayerTextDrawBoxColor(playerid, ConversandoH5, 50);
- PlayerTextDrawUseBox(playerid, ConversandoH5, 0);
- PlayerTextDrawSetProportional(playerid, ConversandoH5, 1);
- PlayerTextDrawSetSelectable(playerid, ConversandoH5, 0);
- SendClientMessage(playerid, -1, "sistema de whatsapp em textdraw by yoshi_ PAWN EXPRESS");
- zapTextP[playerid][0] = CreatePlayerTextDraw(playerid, 529.000000, 225.000000, "Yoshi_pawn_express");
- PlayerTextDrawFont(playerid, zapTextP[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid, zapTextP[playerid][0], 0.212499, 0.849999);
- PlayerTextDrawTextSize(playerid, zapTextP[playerid][0], 16.500000, 65.500000);
- PlayerTextDrawSetOutline(playerid, zapTextP[playerid][0], 0);
- PlayerTextDrawSetShadow(playerid, zapTextP[playerid][0], 0);
- PlayerTextDrawAlignment(playerid, zapTextP[playerid][0], 2);
- PlayerTextDrawColor(playerid, zapTextP[playerid][0], 255);
- PlayerTextDrawBackgroundColor(playerid, zapTextP[playerid][0], 255);
- PlayerTextDrawBoxColor(playerid, zapTextP[playerid][0], 200);
- PlayerTextDrawUseBox(playerid, zapTextP[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid, zapTextP[playerid][0], 1);
- PlayerTextDrawSetSelectable(playerid, zapTextP[playerid][0], 1);
- zapTextP[playerid][1] = CreatePlayerTextDraw(playerid, 497.000000, 238.000000, "FS_WhatsApp_by_Yoshi");
- PlayerTextDrawFont(playerid, zapTextP[playerid][1], 1);
- PlayerTextDrawLetterSize(playerid, zapTextP[playerid][1], 0.141666, 0.850000);
- PlayerTextDrawTextSize(playerid, zapTextP[playerid][1], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, zapTextP[playerid][1], 0);
- PlayerTextDrawSetShadow(playerid, zapTextP[playerid][1], 0);
- PlayerTextDrawAlignment(playerid, zapTextP[playerid][1], 1);
- PlayerTextDrawColor(playerid, zapTextP[playerid][1], 1296911871);
- PlayerTextDrawBackgroundColor(playerid, zapTextP[playerid][1], 255);
- PlayerTextDrawBoxColor(playerid, zapTextP[playerid][1], 50);
- PlayerTextDrawUseBox(playerid, zapTextP[playerid][1], 0);
- PlayerTextDrawSetProportional(playerid, zapTextP[playerid][1], 1);
- PlayerTextDrawSetSelectable(playerid, zapTextP[playerid][1], 0);
- zapTextP[playerid][2] = CreatePlayerTextDraw(playerid, 529.000000, 263.000000, "Yoshi_pawn_express");
- PlayerTextDrawFont(playerid, zapTextP[playerid][2], 1);
- PlayerTextDrawLetterSize(playerid, zapTextP[playerid][2], 0.212499, 0.849999);
- PlayerTextDrawTextSize(playerid, zapTextP[playerid][2], 16.500000, 65.500000);
- PlayerTextDrawSetOutline(playerid, zapTextP[playerid][2], 0);
- PlayerTextDrawSetShadow(playerid, zapTextP[playerid][2], 0);
- PlayerTextDrawAlignment(playerid, zapTextP[playerid][2], 2);
- PlayerTextDrawColor(playerid, zapTextP[playerid][2], 255);
- PlayerTextDrawBackgroundColor(playerid, zapTextP[playerid][2], 255);
- PlayerTextDrawBoxColor(playerid, zapTextP[playerid][2], 200);
- PlayerTextDrawUseBox(playerid, zapTextP[playerid][2], 0);
- PlayerTextDrawSetProportional(playerid, zapTextP[playerid][2], 1);
- PlayerTextDrawSetSelectable(playerid, zapTextP[playerid][2], 1);
- zapTextP[playerid][3] = CreatePlayerTextDraw(playerid, 497.000000, 275.000000, "FS_WhatsApp_by_Yoshi");
- PlayerTextDrawFont(playerid, zapTextP[playerid][3], 1);
- PlayerTextDrawLetterSize(playerid, zapTextP[playerid][3], 0.141666, 0.850000);
- PlayerTextDrawTextSize(playerid, zapTextP[playerid][3], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, zapTextP[playerid][3], 0);
- PlayerTextDrawSetShadow(playerid, zapTextP[playerid][3], 0);
- PlayerTextDrawAlignment(playerid, zapTextP[playerid][3], 1);
- PlayerTextDrawColor(playerid, zapTextP[playerid][3], 1296911871);
- PlayerTextDrawBackgroundColor(playerid, zapTextP[playerid][3], 255);
- PlayerTextDrawBoxColor(playerid, zapTextP[playerid][3], 50);
- PlayerTextDrawUseBox(playerid, zapTextP[playerid][3], 0);
- PlayerTextDrawSetProportional(playerid, zapTextP[playerid][3], 1);
- PlayerTextDrawSetSelectable(playerid, zapTextP[playerid][3], 0);
- zapTextP[playerid][4] = CreatePlayerTextDraw(playerid, 529.000000, 296.000000, "Yoshi_pawn_express");
- PlayerTextDrawFont(playerid, zapTextP[playerid][4], 1);
- PlayerTextDrawLetterSize(playerid, zapTextP[playerid][4], 0.212499, 0.849999);
- PlayerTextDrawTextSize(playerid, zapTextP[playerid][4], 16.500000, 65.500000);
- PlayerTextDrawSetOutline(playerid, zapTextP[playerid][4], 0);
- PlayerTextDrawSetShadow(playerid, zapTextP[playerid][4], 0);
- PlayerTextDrawAlignment(playerid, zapTextP[playerid][4], 2);
- PlayerTextDrawColor(playerid, zapTextP[playerid][4], 255);
- PlayerTextDrawBackgroundColor(playerid, zapTextP[playerid][4], 255);
- PlayerTextDrawBoxColor(playerid, zapTextP[playerid][4], 200);
- PlayerTextDrawUseBox(playerid, zapTextP[playerid][4], 0);
- PlayerTextDrawSetProportional(playerid, zapTextP[playerid][4], 1);
- PlayerTextDrawSetSelectable(playerid, zapTextP[playerid][4], 1);
- zapTextP[playerid][5] = CreatePlayerTextDraw(playerid, 497.000000, 308.000000, "FS_WhatsApp_by_Yoshi");
- PlayerTextDrawFont(playerid, zapTextP[playerid][5], 1);
- PlayerTextDrawLetterSize(playerid, zapTextP[playerid][5], 0.141666, 0.850000);
- PlayerTextDrawTextSize(playerid, zapTextP[playerid][5], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, zapTextP[playerid][5], 0);
- PlayerTextDrawSetShadow(playerid, zapTextP[playerid][5], 0);
- PlayerTextDrawAlignment(playerid, zapTextP[playerid][5], 1);
- PlayerTextDrawColor(playerid, zapTextP[playerid][5], 1296911871);
- PlayerTextDrawBackgroundColor(playerid, zapTextP[playerid][5], 255);
- PlayerTextDrawBoxColor(playerid, zapTextP[playerid][5], 50);
- PlayerTextDrawUseBox(playerid, zapTextP[playerid][5], 0);
- PlayerTextDrawSetProportional(playerid, zapTextP[playerid][5], 1);
- PlayerTextDrawSetSelectable(playerid, zapTextP[playerid][5], 0);
- zapTextP[playerid][6] = CreatePlayerTextDraw(playerid, 497.000000, 342.000000, "FS_WhatsApp_by_Yoshi");
- PlayerTextDrawFont(playerid, zapTextP[playerid][6], 1);
- PlayerTextDrawLetterSize(playerid, zapTextP[playerid][6], 0.141666, 0.850000);
- PlayerTextDrawTextSize(playerid, zapTextP[playerid][6], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, zapTextP[playerid][6], 0);
- PlayerTextDrawSetShadow(playerid, zapTextP[playerid][6], 0);
- PlayerTextDrawAlignment(playerid, zapTextP[playerid][6], 1);
- PlayerTextDrawColor(playerid, zapTextP[playerid][6], 1296911871);
- PlayerTextDrawBackgroundColor(playerid, zapTextP[playerid][6], 255);
- PlayerTextDrawBoxColor(playerid, zapTextP[playerid][6], 50);
- PlayerTextDrawUseBox(playerid, zapTextP[playerid][6], 0);
- PlayerTextDrawSetProportional(playerid, zapTextP[playerid][6], 1);
- PlayerTextDrawSetSelectable(playerid, zapTextP[playerid][6], 0);
- zapTextP[playerid][7] = CreatePlayerTextDraw(playerid, 529.000000, 330.000000, "Yoshi_pawn_express");
- PlayerTextDrawFont(playerid, zapTextP[playerid][7], 1);
- PlayerTextDrawLetterSize(playerid, zapTextP[playerid][7], 0.212499, 0.849999);
- PlayerTextDrawTextSize(playerid, zapTextP[playerid][7], 16.500000, 65.500000);
- PlayerTextDrawSetOutline(playerid, zapTextP[playerid][7], 0);
- PlayerTextDrawSetShadow(playerid, zapTextP[playerid][7], 0);
- PlayerTextDrawAlignment(playerid, zapTextP[playerid][7], 2);
- PlayerTextDrawColor(playerid, zapTextP[playerid][7], 255);
- PlayerTextDrawBackgroundColor(playerid, zapTextP[playerid][7], 255);
- PlayerTextDrawBoxColor(playerid, zapTextP[playerid][7], 200);
- PlayerTextDrawUseBox(playerid, zapTextP[playerid][7], 0);
- PlayerTextDrawSetProportional(playerid, zapTextP[playerid][7], 1);
- PlayerTextDrawSetSelectable(playerid, zapTextP[playerid][7], 1);
- EnviarMsg = CreatePlayerTextDraw(playerid, 527.000000, 387.000000, "Enviar_Uma_Mensagem...");
- PlayerTextDrawFont(playerid, EnviarMsg, 2);
- PlayerTextDrawLetterSize(playerid, EnviarMsg, 0.212496, 1.250000);
- PlayerTextDrawTextSize(playerid, EnviarMsg, 16.500000, 90.500000);
- PlayerTextDrawSetOutline(playerid, EnviarMsg, 0);
- PlayerTextDrawSetShadow(playerid, EnviarMsg, 0);
- PlayerTextDrawAlignment(playerid, EnviarMsg, 2);
- PlayerTextDrawColor(playerid, EnviarMsg, 255);
- PlayerTextDrawBackgroundColor(playerid, EnviarMsg, 255);
- PlayerTextDrawBoxColor(playerid, EnviarMsg, 255);
- PlayerTextDrawUseBox(playerid, EnviarMsg, 0);
- PlayerTextDrawSetProportional(playerid, EnviarMsg, 1);
- PlayerTextDrawSetSelectable(playerid, EnviarMsg, 1);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new pNum[90];
- format(pNum, 90, "WhatsApp/Numeros/%s.ini", pName(playerid));
- if(dini_Exists(pNum))
- {
- dini_IntSet(pNum, "Numero", Player[playerid][NumeroCLL]);
- }
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][0]);
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][1]);
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][2]);
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][3]);
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][4]);
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][5]);
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][6]);
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][7]);
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][8]);
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][9]);
- PlayerTextDrawDestroy(playerid, yoshiText[playerid][10]);
- PlayerTextDrawDestroy(playerid, ConversandoH1);
- PlayerTextDrawDestroy(playerid, ConversandoH2);
- PlayerTextDrawDestroy(playerid, ConversandoH3);
- PlayerTextDrawDestroy(playerid, ConversandoH4);
- PlayerTextDrawDestroy(playerid, ConversandoH5);
- 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[])
- {
- if (strcmp("/mycommand", cmdtext, true, 10) == 0)
- {
- // Do something here
- 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[])
- {
- if(dialogid == D_Contatos) {
- if(response) {
- new eSlot = listitem;
- new pCon[90], String[128];
- SlotC[playerid] = eSlot;
- format(pCon, 90, "WhatsApp/Contatos/%s.ini", pName(playerid));
- format(String, 128, "NumeroContato%i", eSlot);
- if(dini_Int(pCon, String) == 0) {
- ModoC[playerid] = 1;
- ShowPlayerDialog(playerid, D_NumeroC, DIALOG_STYLE_INPUT, "Numero do novo contato:", "Digite o numero do novo contato", "Confirmar", "Cancelar");
- }
- else {
- ShowPlayerDialog(playerid, D_MenuC, DIALOG_STYLE_LIST, "Menu do contato:", "{00FF00}Conversar no WhatsApp\n{FF0000}Excluir contato\n{0098FF}Editar contato", "Selecionar", "Cancelar");
- }
- }
- }
- if(dialogid == D_NumeroC) {
- if(response) {
- new nNumero;
- if(sscanf(inputtext, "d", nNumero)) {
- SendClientMessage(playerid, 0xFF0000AA, "ERROR | Digite o numero");
- return 1;
- }
- else {
- new pCon[90], String[128];
- if(ModoC[playerid] == 1) {
- format(pCon, 90, "WhatsApp/Contatos/%s.ini", pName(playerid));
- if(dini_Exists(pCon)) {
- new pContato = -1;
- for(new i = 0; i < MAX_PLAYERS; i++) {
- if(IsPlayerConnected(i)) {
- if(Player[i][NumeroCLL] == nNumero && i != playerid) {
- pContato = i;
- }
- }
- }
- if(pContato != -1) {
- format(String, 128, "NumeroContato%i", SlotC[playerid]);
- dini_IntSet(pCon, String, nNumero);
- format(String, 128, "pContato%i", SlotC[playerid]);
- dini_Set(pCon, String, pName(pContato));
- ShowPlayerDialog(playerid, D_NomeC, DIALOG_STYLE_INPUT, "Nome do novo contato:", "Digite o nome do novo contato", "Confirmar", "Cancelar");
- }
- }
- }
- }
- }
- }
- if(dialogid == D_NomeC) {
- if(response) {
- new nNome[50];
- if(sscanf(inputtext, "s", nNome)) {
- SendClientMessage(playerid, -1, "Digite o nome.");
- ShowPlayerDialog(playerid, D_NomeC, DIALOG_STYLE_INPUT, "Nome do novo contato:", "Digite o nome do novo contato", "Confirmar", "Cancelar");
- return 1;
- }
- else {
- new pCon[90], String[128];
- if(ModoC[playerid] == 1) {
- format(pCon, 90, "WhatsApp/Contatos/%s.ini", pName(playerid));
- if(dini_Exists(pCon)) {
- format(String, 128, "NomeContato%i", SlotC[playerid]);
- dini_Set(pCon, String, nNome);
- SendClientMessage(playerid, -1, "Contato criado.");
- }
- }
- }
- }
- else {
- new pCon[90], String[128];
- format(pCon, 90, "WhatsApp/Contatos/%s.ini", pName(playerid));
- format(String, 128, "NumeroContato%i", SlotC[playerid]);
- dini_IntSet(pCon, String, 0);
- format(String, 128, "pContato%i", SlotC[playerid]);
- dini_Set(pCon, String, "Ninguem");
- format(String, 128, "NomeContato%i", SlotC[playerid]);
- dini_Set(pCon, String, "Ninguem");
- SlotC[playerid] = -1;
- }
- }
- if(dialogid == D_MenuC) {
- if(response) {
- if(listitem == 0) {
- new pCon[90], String[128], pZap[90];
- new IDc = -1;
- for(new i = 0; i < MAX_CONVERSAS; i++) {
- format(pZap, 90, "WhatsApp/Conversas/Conversa%i.ini", i);
- if(!dini_Exists(pZap)) {
- IDc = i;
- break;
- }
- }
- format(pZap, 90, "WhatsApp/Conversas/Conversa%i.ini", IDc);
- format(pCon, 90, "WhatsApp/Contatos/%s.ini", pName(playerid));
- if(IDc != -1) {
- if(!dini_Exists(pZap)) {
- dini_Create(pZap);
- dini_Set(pZap, "Pessoa1", pName(playerid));
- format(String, sizeof(String), "pContato%i", SlotC[playerid]);
- dini_Set(pZap, "Pessoa2", dini_Get(pCon, String));
- dini_IntSet(pZap, "NumeroP1", Player[playerid][NumeroCLL]);
- format(String, sizeof(String), "NumeroContato%i", SlotC[playerid]);
- dini_IntSet(pZap, "NumeroP2", dini_Int(pCon, String));
- dini_Set(pZap, "Msg1", "Nada");
- dini_Set(pZap, "hMsg1", "0:00");
- dini_Set(pZap, "pMsg1", "Ninguem");
- dini_Set(pZap, "Msg2", "Nada");
- dini_Set(pZap, "hMsg2", "0:00");
- dini_Set(pZap, "pMsg2", "Ninguem");
- dini_Set(pZap, "Msg3", "Nada");
- dini_Set(pZap, "hMsg3", "0:00");
- dini_Set(pZap, "pMsg3", "Ninguem");
- dini_Set(pZap, "Msg4", "Nada");
- dini_Set(pZap, "hMsg4", "0:00");
- dini_Set(pZap, "pMsg4", "Ninguem");
- dini_Set(pZap, "Msg5", "Nada");
- dini_Set(pZap, "hMsg5", "0:00");
- dini_Set(pZap, "pMsg5", "Ninguem");
- pAbrirConversa(playerid, IDc);
- SendClientMessage(playerid, -1, "yoshi lindoooooooooo");
- for(new i = 0; i < MAX_CONVERSASP; i++) {
- format(pZap, 90, "WhatsApp/ConversasP/%s.ini", pName(playerid));
- if(dini_Exists(pZap)) {
- format(String, 128, "Conversa%i", i);
- if(dini_Int(pZap, String) == -1) {
- dini_IntSet(pZap, String, IDc);
- break;
- }
- }
- }
- // conversa player do outro ctt
- format(String, sizeof(String), "pContato%i", SlotC[playerid]);
- for(new i = 0; i < MAX_CONVERSASP; i++) {
- format(pZap, 90, "WhatsApp/ConversasP/%s.ini", dini_Get(pCon, String));
- if(dini_Exists(pZap)) {
- format(String, 128, "Conversa%i", i);
- if(dini_Int(pZap, String) == -1) {
- dini_IntSet(pZap, String, IDc);
- break;
- }
- }
- }
- }
- }
- }
- if(listitem == 1) {
- new pCon[90], String[128];
- format(pCon, 90, "WhatsApp/Contatos/%s.ini", pName(playerid));
- format(String, 128, "NumeroContato%i", SlotC[playerid]);
- dini_IntSet(pCon, String, 0);
- format(String, 128, "pContato%i", SlotC[playerid]);
- dini_Set(pCon, String, "Ninguem");
- format(String, 128, "NomeContato%i", SlotC[playerid]);
- dini_Set(pCon, String, "Ninguem");
- SendClientMessage(playerid, -1, "Contato excluido.");
- SlotC[playerid] = -1;
- }
- }
- }
- if(dialogid == D_Escrever) {
- if(response) {
- new Mensagem[512];
- if(sscanf(inputtext, "%s", Mensagem)) {
- SendClientMessage(playerid, -1, "Digite a mensagem.");
- return 1;
- }
- else {
- for(new lin=0;lin<strlen(Mensagem);lin++){
- if(Mensagem[lin]==' ')Mensagem[lin]='_';}
- new pZap[128];
- format(pZap, 128, "WhatsApp/Conversas/Conversa%i.ini", Conversa[playerid]);
- if(dini_Exists(pZap)) {
- new PlayerC = -1;
- if(new_strcmp(dini_Get(pZap, "Pessoa1"), pName(playerid))) {
- PlayerC = GetPlayerN(dini_Get(pZap, "Pessoa2"));
- }
- else if(new_strcmp(dini_Get(pZap, "Pessoa2"), pName(playerid))) {
- PlayerC = GetPlayerN(dini_Get(pZap, "Pessoa1"));
- }
- dini_Set(pZap, "Msg5", dini_Get(pZap, "Msg4"));
- dini_Set(pZap, "hMsg5", dini_Get(pZap, "hMsg4"));
- dini_Set(pZap, "pMsg5", dini_Get(pZap, "pMsg4"));
- dini_Set(pZap, "Msg4", dini_Get(pZap, "Msg3"));
- dini_Set(pZap, "hMsg4", dini_Get(pZap, "hMsg3"));
- dini_Set(pZap, "pMsg4", dini_Get(pZap, "pMsg3"));
- dini_Set(pZap, "Msg3", dini_Get(pZap, "Msg2"));
- dini_Set(pZap, "hMsg3", dini_Get(pZap, "hMsg2"));
- dini_Set(pZap, "pMsg3", dini_Get(pZap, "pMsg2"));
- dini_Set(pZap, "Msg2", dini_Get(pZap, "Msg1"));
- dini_Set(pZap, "hMsg2", dini_Get(pZap, "hMsg1"));
- dini_Set(pZap, "pMsg2", dini_Get(pZap, "pMsg1"));
- dini_Set(pZap, "Msg1", Mensagem);
- dini_Set(pZap, "hMsg1", getHora());
- dini_Set(pZap, "pMsg1", pName(playerid));
- pAbrirConversa(playerid, Conversa[playerid]);
- if(PlayerC != -1) {
- if(Conversa[PlayerC] == Conversa[playerid] && Conversa[PlayerC] != -1 && PlayerC != playerid) {
- pAbrirConversa(PlayerC, Conversa[PlayerC]);
- SendClientMessage(PlayerC, -1, "Aviso WhatsApp: Você tem uma nova mensagem!");
- }
- }
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- CMD:comprarcell(playerid){
- if(Player[playerid][NumeroCLL] != -1) return ymsg(playerid, -1, #Voce ja tem um celular. Use /zap);
- new randphone = random(8890);
- new t[128];
- Player[playerid][NumeroCLL] = randphone;
- format(t, sizeof(t), "Seu numero de celular é: %d", Player[playerid][NumeroCLL]);
- ymsg(playerid, -1, t);
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) {
- if(playertextid == EnviarMsg) {
- if(Conversa[playerid] != -1) {
- ShowPlayerDialog(playerid, D_Escrever, DIALOG_STYLE_INPUT, "Digitando mensagem", "Digite a mensagem para enviar", "Enviar", "Cancelar");
- }
- }
- if(playertextid == zapTextP[playerid][0]) {
- new pZap[90], String[128];
- new c = -1;
- format(pZap, 90, "WhatsApp/ConversasP/%s.ini", pName(playerid));
- format(String, sizeof(String), "Conversa%i", ConveP[playerid][0]);
- c = dini_Int(pZap, String);
- if(dini_Exists(pZap)) {
- pAbrirConversa(playerid, c);
- }
- return 1;
- }
- if(playertextid == zapTextP[playerid][2]) {
- new pZap[90], String[128];
- new c = -1;
- format(pZap, 90, "WhatsApp/ConversasP/%s.ini", pName(playerid));
- format(String, sizeof(String), "Conversa%i", ConveP[playerid][1]);
- c = dini_Int(pZap, String);
- if(dini_Exists(pZap)) {
- pAbrirConversa(playerid, c);
- }
- return 1;
- }
- if(playertextid == zapTextP[playerid][4]) {
- new pZap[90], String[128];
- new c = -1;
- format(pZap, 90, "WhatsApp/ConversasP/%s.ini", pName(playerid));
- format(String, sizeof(String), "Conversa%i", ConveP[playerid][2]);
- c = dini_Int(pZap, String);
- if(dini_Exists(pZap)) {
- pAbrirConversa(playerid, c);
- }
- return 1;
- }
- if(playertextid == zapTextP[playerid][7]) {
- new pZap[90], String[128];
- new c = -1;
- format(pZap, 90, "WhatsApp/ConversasP/%s.ini", pName(playerid));
- format(String, sizeof(String), "Conversa%i", ConveP[playerid][3]);
- c = dini_Int(pZap, String);
- if(dini_Exists(pZap)) {
- pAbrirConversa(playerid, c);
- }
- return 1;
- }
- return 1;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid) {
- if(clickedid == zapText[27]) {
- ConveP[playerid][0] = ConveP[playerid][1];
- ConveP[playerid][1] = ConveP[playerid][2];
- ConveP[playerid][2] = ConveP[playerid][3];
- ConveP[playerid][3]++;
- aConversas(playerid);
- return 1;
- }
- if(clickedid == zapText[26]) {
- ConveP[playerid][1] = ConveP[playerid][0];
- ConveP[playerid][2] = ConveP[playerid][1];
- ConveP[playerid][3] = ConveP[playerid][2];
- ConveP[playerid][0]--;
- aConversas(playerid);
- return 1;
- }
- if(clickedid == zapText[17]) {
- new String[10000];
- new Str[256], pCon[90], mStr[128];
- String[0] = EOS;
- format(pCon, 90, "WhatsApp/Contatos/%s.ini", pName(playerid));
- format(Str, 256, "Contato 0: %s", dini_Get(pCon, "NomeContato0"));
- strcat(String, Str);
- for(new i = 1; i < 99; i++) {
- format(mStr, 128, "NomeContato%i", i);
- format(Str, 256, "\nContato %i: %s", i, dini_Get(pCon, mStr));
- strcat(String, Str);
- }
- ShowPlayerDialog(playerid, D_Contatos, DIALOG_STYLE_LIST, "Seus contatos:", String, "Selecionar", "Cancelar");
- return 1;
- }
- if(clickedid == ConversaText[15])
- {
- for(new i = 0; i < sizeof(zapText); i++)
- TextDrawHideForPlayer(playerid, zapText[i]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][0]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][1]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][2]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][3]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][4]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][5]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][6]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][7]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][8]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][9]);
- PlayerTextDrawHide(playerid, yoshiText[playerid][10]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][0]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][1]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][2]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][3]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][4]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][5]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][6]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][7]);
- PlayerTextDrawHide(playerid, ConversandoH1);
- PlayerTextDrawHide(playerid, ConversandoH2);
- PlayerTextDrawHide(playerid, ConversandoH3);
- PlayerTextDrawHide(playerid, ConversandoH4);
- PlayerTextDrawHide(playerid, ConversandoH5);
- TextDrawHideForPlayer(playerid, ConversaText[0]);
- TextDrawHideForPlayer(playerid, ConversaText[1]);
- TextDrawHideForPlayer(playerid, ConversaText[2]);
- TextDrawHideForPlayer(playerid, ConversaText[3]);
- TextDrawHideForPlayer(playerid, ConversaText[4]);
- TextDrawHideForPlayer(playerid, ConversaText[5]);
- TextDrawHideForPlayer(playerid, ConversaText[6]);
- TextDrawHideForPlayer(playerid, ConversaText[7]);
- TextDrawHideForPlayer(playerid, ConversaText[8]);
- TextDrawHideForPlayer(playerid, ConversaText[9]);
- TextDrawHideForPlayer(playerid, ConversaText[10]);
- TextDrawHideForPlayer(playerid, ConversaText[11]);
- TextDrawHideForPlayer(playerid, ConversaText[12]);
- TextDrawHideForPlayer(playerid, ConversaText[13]);
- TextDrawHideForPlayer(playerid, ConversaText[14]);
- TextDrawHideForPlayer(playerid, ConversaText[15]);
- TextDrawHideForPlayer(playerid, ConversaText[16]);
- TextDrawHideForPlayer(playerid, ConversaText[17]);
- PlayerTextDrawHide(playerid, EnviarMsg);
- aConversas(playerid);
- return 1;
- }
- return 1;
- }
- stock pAbrirConversa(playerid, ConversaID) {
- new pZap[90], String[512], StringNC[128];
- format(pZap, 90, "WhatsApp/Conversas/Conversa%i.ini", ConversaID);
- // textdraws conversas sumir
- /* txds whatsapp */
- for(new i = 0; i < sizeof(zapText); i++)
- TextDrawHideForPlayer(playerid, zapText[i]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][0]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][1]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][2]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][3]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][4]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][5]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][6]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][7]);
- SelectTextDraw(playerid, 0xFF0000FF);
- // conversando player
- TextDrawShowForPlayer(playerid, ConversaText[0]);
- TextDrawShowForPlayer(playerid, ConversaText[1]);
- TextDrawShowForPlayer(playerid, ConversaText[2]);
- TextDrawShowForPlayer(playerid, ConversaText[3]);
- TextDrawShowForPlayer(playerid, ConversaText[4]);
- TextDrawShowForPlayer(playerid, ConversaText[5]);
- TextDrawShowForPlayer(playerid, ConversaText[6]);
- TextDrawShowForPlayer(playerid, ConversaText[7]);
- TextDrawShowForPlayer(playerid, ConversaText[8]);
- TextDrawShowForPlayer(playerid, ConversaText[9]);
- TextDrawShowForPlayer(playerid, ConversaText[10]);
- TextDrawShowForPlayer(playerid, ConversaText[11]);
- TextDrawShowForPlayer(playerid, ConversaText[12]);
- TextDrawShowForPlayer(playerid, ConversaText[13]);
- TextDrawShowForPlayer(playerid, ConversaText[14]);
- TextDrawShowForPlayer(playerid, ConversaText[15]);
- TextDrawShowForPlayer(playerid, ConversaText[16]);
- TextDrawShowForPlayer(playerid, ConversaText[17]);
- PlayerTextDrawShow(playerid, EnviarMsg);
- SelectTextDraw(playerid, 0xFF0000FF);
- // conversa
- if(dini_Exists(pZap)) {
- if(dini_Int(pZap, "NumeroP1") == Player[playerid][NumeroCLL]) {
- format(StringNC, sizeof(StringNC), "%s", GetContatoNome(playerid, dini_Int(pZap, "NumeroP2")));
- }
- else if(dini_Int(pZap, "NumeroP2") == Player[playerid][NumeroCLL]) {
- format(StringNC, sizeof(StringNC), "%s", GetContatoNome(playerid, dini_Int(pZap, "NumeroP1")));
- }
- // MSG 1
- if(!new_strcmp(dini_Get(pZap, "Msg1"), "Nada")) {
- if(new_strcmp(dini_Get(pZap, "pMsg1"), pName(playerid))) {
- PlayerTextDrawBoxColor(playerid,yoshiText[playerid][1], -1862299393);
- PlayerTextDrawShow(playerid, yoshiText[playerid][1]);
- PlayerTextDrawShow(playerid, yoshiText[playerid][6]);
- PlayerTextDrawShow(playerid, ConversandoH1);
- format(String, sizeof(String), "%s", dini_Get(pZap, "Msg1"));
- PlayerTextDrawSetString(playerid, yoshiText[playerid][6], String);
- format(String, sizeof(String), "%s", dini_Get(pZap, "hMsg1"));
- PlayerTextDrawSetString(playerid, ConversandoH1, String);
- }
- else {
- PlayerTextDrawBoxColor(playerid,yoshiText[playerid][1], -1);
- PlayerTextDrawShow(playerid, yoshiText[playerid][1]);
- PlayerTextDrawShow(playerid, yoshiText[playerid][6]);
- PlayerTextDrawShow(playerid, ConversandoH1);
- format(String, sizeof(String), "%s", dini_Get(pZap, "Msg1"));
- PlayerTextDrawSetString(playerid, yoshiText[playerid][6], String);
- format(String, sizeof(String), "%s", dini_Get(pZap, "hMsg1"));
- PlayerTextDrawSetString(playerid, ConversandoH1, String);
- }
- }
- // MSG 2
- if(!new_strcmp(dini_Get(pZap, "Msg2"), "Nada")) {
- if(new_strcmp(dini_Get(pZap, "pMsg2"), pName(playerid))) {
- PlayerTextDrawBoxColor(playerid,yoshiText[playerid][2], -1862299393);
- PlayerTextDrawShow(playerid, yoshiText[playerid][2]);
- PlayerTextDrawShow(playerid, yoshiText[playerid][7]);
- PlayerTextDrawShow(playerid, ConversandoH2);
- format(String, sizeof(String), "%s", dini_Get(pZap, "Msg2"));
- PlayerTextDrawSetString(playerid, yoshiText[playerid][7], String);
- format(String, sizeof(String), "%s", dini_Get(pZap, "hMsg2"));
- PlayerTextDrawSetString(playerid, ConversandoH2, String);
- }
- else {
- PlayerTextDrawBoxColor(playerid,yoshiText[playerid][2], -1);
- PlayerTextDrawShow(playerid, yoshiText[playerid][2]);
- PlayerTextDrawShow(playerid, yoshiText[playerid][7]);
- PlayerTextDrawShow(playerid, ConversandoH2);
- format(String, sizeof(String), "%s", dini_Get(pZap, "Msg2"));
- PlayerTextDrawSetString(playerid, yoshiText[playerid][7], String);
- format(String, sizeof(String), "%s", dini_Get(pZap, "hMsg2"));
- PlayerTextDrawSetString(playerid, ConversandoH2, String);
- }
- }
- // MSG 3
- if(!new_strcmp(dini_Get(pZap, "Msg3"), "Nada")) {
- if(new_strcmp(dini_Get(pZap, "pMsg3"), pName(playerid))) {
- PlayerTextDrawBoxColor(playerid,yoshiText[playerid][3], -1862299393);
- PlayerTextDrawShow(playerid, yoshiText[playerid][3]);
- PlayerTextDrawShow(playerid, yoshiText[playerid][8]);
- PlayerTextDrawShow(playerid, ConversandoH3);
- format(String, sizeof(String), "%s", dini_Get(pZap, "Msg3"));
- PlayerTextDrawSetString(playerid, yoshiText[playerid][8], String);
- format(String, sizeof(String), "%s", dini_Get(pZap, "hMsg3"));
- PlayerTextDrawSetString(playerid, ConversandoH3, String);
- }
- else {
- PlayerTextDrawBoxColor(playerid,yoshiText[playerid][3], -1);
- PlayerTextDrawShow(playerid, yoshiText[playerid][3]);
- PlayerTextDrawShow(playerid, yoshiText[playerid][8]);
- PlayerTextDrawShow(playerid, ConversandoH3);
- format(String, sizeof(String), "%s", dini_Get(pZap, "Msg3"));
- PlayerTextDrawSetString(playerid, yoshiText[playerid][8], String);
- format(String, sizeof(String), "%s", dini_Get(pZap, "hMsg3"));
- PlayerTextDrawSetString(playerid, ConversandoH3, String);
- }
- }
- // MSG 4
- if(!new_strcmp(dini_Get(pZap, "Msg4"), "Nada")) {
- if(new_strcmp(dini_Get(pZap, "pMsg4"), pName(playerid))) {
- PlayerTextDrawBoxColor(playerid,yoshiText[playerid][4], -1862299393);
- PlayerTextDrawShow(playerid, yoshiText[playerid][4]);
- PlayerTextDrawShow(playerid, yoshiText[playerid][9]);
- PlayerTextDrawShow(playerid, ConversandoH4);
- format(String, sizeof(String), "%s", dini_Get(pZap, "Msg4"));
- PlayerTextDrawSetString(playerid, yoshiText[playerid][9], String);
- format(String, sizeof(String), "%s", dini_Get(pZap, "hMsg4"));
- PlayerTextDrawSetString(playerid, ConversandoH4, String);
- }
- else {
- PlayerTextDrawBoxColor(playerid,yoshiText[playerid][4], -1);
- PlayerTextDrawShow(playerid, yoshiText[playerid][4]);
- PlayerTextDrawShow(playerid, yoshiText[playerid][9]);
- PlayerTextDrawShow(playerid, ConversandoH4);
- format(String, sizeof(String), "%s", dini_Get(pZap, "Msg4"));
- PlayerTextDrawSetString(playerid, yoshiText[playerid][9], String);
- format(String, sizeof(String), "%s", dini_Get(pZap, "hMsg4"));
- PlayerTextDrawSetString(playerid, ConversandoH4, String);
- }
- }
- // MSG 5
- if(!new_strcmp(dini_Get(pZap, "Msg5"), "Nada")) {
- if(new_strcmp(dini_Get(pZap, "pMsg5"), pName(playerid))) {
- PlayerTextDrawBoxColor(playerid,yoshiText[playerid][5], -1862299393);
- PlayerTextDrawShow(playerid, yoshiText[playerid][5]);
- PlayerTextDrawShow(playerid, yoshiText[playerid][10]);
- PlayerTextDrawShow(playerid, ConversandoH5);
- format(String, sizeof(String), "%s", dini_Get(pZap, "Msg5"));
- PlayerTextDrawSetString(playerid, yoshiText[playerid][10], String);
- format(String, sizeof(String), "%s", dini_Get(pZap, "hMsg5"));
- PlayerTextDrawSetString(playerid, ConversandoH5, String);
- }
- else {
- PlayerTextDrawBoxColor(playerid,yoshiText[playerid][5], -1);
- PlayerTextDrawShow(playerid, yoshiText[playerid][5]);
- PlayerTextDrawShow(playerid, yoshiText[playerid][10]);
- PlayerTextDrawShow(playerid, ConversandoH5);
- format(String, sizeof(String), "%s", dini_Get(pZap, "Msg5"));
- PlayerTextDrawSetString(playerid, yoshiText[playerid][10], String);
- format(String, sizeof(String), "%s", dini_Get(pZap, "hMsg5"));
- PlayerTextDrawSetString(playerid, ConversandoH5, String);
- }
- }
- PlayerTextDrawSetString(playerid, yoshiText[playerid][0], StringNC);
- PlayerTextDrawShow(playerid, yoshiText[playerid][0]);
- //SelectTextDraw(playerid, -3);
- Conversa[playerid] = ConversaID;
- }
- return 1;
- }
- stock GetPlayerN(Nick[]) {
- new rE = -1;
- for(new i = 0; i < MAX_PLAYERS; i++) {
- if(IsPlayerConnected(i)) {
- if(new_strcmp(Nick, pName(i))) {
- rE = i;
- }
- }
- }
- return rE;
- }
- stock aConversas(playerid) {
- if(IsPlayerConnected(playerid)) {
- new String[256], pZap[90], StringNC[128];
- format(pZap, 90, "WhatsApp/ConversasP/%s.ini", pName(playerid));
- new c1 = -1;
- format(String, sizeof(String), "Conversa%i", ConveP[playerid][0]);
- c1 = dini_Int(pZap, String);
- new c2 = -1;
- format(String, sizeof(String), "Conversa%i", ConveP[playerid][1]);
- c2 = dini_Int(pZap, String);
- new c3 = -1;
- format(String, sizeof(String), "Conversa%i", ConveP[playerid][2]);
- c3 = dini_Int(pZap, String);
- new c4 = -1;
- format(String, sizeof(String), "Conversa%i", ConveP[playerid][3]);
- c4 = dini_Int(pZap, String);
- /* txds whatsapp */
- for(new i = 0; i < sizeof(zapText); i++)
- TextDrawShowForPlayer(playerid, zapText[i]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][0]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][1]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][2]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][3]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][4]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][5]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][6]);
- PlayerTextDrawHide(playerid, zapTextP[playerid][7]);
- SelectTextDraw(playerid, 0xFF0000FF);
- // Conversa 1
- format(pZap, 90, "WhatsApp/Conversas/Conversa%i.ini", c1);
- if(dini_Exists(pZap)) {
- PlayerTextDrawShow(playerid, zapTextP[playerid][0]);
- PlayerTextDrawShow(playerid, zapTextP[playerid][1]);
- //PlayerTextDrawShow(playerid, nConversa1);
- if(dini_Int(pZap, "NumeroP1") == Player[playerid][NumeroCLL]) {
- format(StringNC, sizeof(StringNC), "%s", GetContatoNome(playerid, dini_Int(pZap, "NumeroP2")));
- }
- else if(dini_Int(pZap, "NumeroP2") == Player[playerid][NumeroCLL]) {
- format(StringNC, sizeof(StringNC), "%s", GetContatoNome(playerid, dini_Int(pZap, "NumeroP1")));
- }
- PlayerTextDrawSetString(playerid, zapTextP[playerid][0], StringNC);
- format(StringNC, sizeof(StringNC), "%033s", dini_Get(pZap, "Msg1"));
- PlayerTextDrawSetString(playerid, zapTextP[playerid][1], StringNC);
- }
- // Conversa 2
- format(pZap, 90, "WhatsApp/Conversas/Conversa%i.ini", c2);
- if(dini_Exists(pZap)) {
- PlayerTextDrawShow(playerid, zapTextP[playerid][2]);
- PlayerTextDrawShow(playerid, zapTextP[playerid][3]);
- //PlayerTextDrawShow(playerid, nConversa2);
- if(dini_Int(pZap, "NumeroP1") == Player[playerid][NumeroCLL]) {
- format(StringNC, sizeof(StringNC), "%s", GetContatoNome(playerid, dini_Int(pZap, "NumeroP2")));
- }
- else if(dini_Int(pZap, "NumeroP2") == Player[playerid][NumeroCLL]) {
- format(StringNC, sizeof(StringNC), "%s", GetContatoNome(playerid, dini_Int(pZap, "NumeroP1")));
- }
- PlayerTextDrawSetString(playerid, zapTextP[playerid][2], StringNC);
- format(StringNC, sizeof(StringNC), "%033s", dini_Get(pZap, "Msg1"));
- PlayerTextDrawSetString(playerid, zapTextP[playerid][3], StringNC);
- }
- // Conversa 3
- format(pZap, 90, "WhatsApp/Conversas/Conversa%i.ini", c3);
- if(dini_Exists(pZap)) {
- PlayerTextDrawShow(playerid, zapTextP[playerid][4]);
- PlayerTextDrawShow(playerid, zapTextP[playerid][5]);
- //PlayerTextDrawShow(playerid, nConversa3);
- if(dini_Int(pZap, "NumeroP1") == Player[playerid][NumeroCLL]) {
- format(StringNC, sizeof(StringNC), "%s", GetContatoNome(playerid, dini_Int(pZap, "NumeroP2")));
- }
- else if(dini_Int(pZap, "NumeroP2") == Player[playerid][NumeroCLL]) {
- format(StringNC, sizeof(StringNC), "%s", GetContatoNome(playerid, dini_Int(pZap, "NumeroP1")));
- }
- PlayerTextDrawSetString(playerid, zapTextP[playerid][4], StringNC);
- format(StringNC, sizeof(StringNC), "%033s", dini_Get(pZap, "Msg1"));
- PlayerTextDrawSetString(playerid, zapTextP[playerid][5], StringNC);
- }
- // Conversa 4
- format(pZap, 90, "WhatsApp/Conversas/Conversa%i.ini", c4);
- if(dini_Exists(pZap)) {
- PlayerTextDrawShow(playerid, zapTextP[playerid][7]);
- PlayerTextDrawShow(playerid, zapTextP[playerid][6]);
- //PlayerTextDrawShow(playerid, nConversa4);
- if(dini_Int(pZap, "NumeroP1") == Player[playerid][NumeroCLL]) {
- format(StringNC, sizeof(StringNC), "%s", GetContatoNome(playerid, dini_Int(pZap, "NumeroP2")));
- }
- else if(dini_Int(pZap, "NumeroP2") == Player[playerid][NumeroCLL]) {
- format(StringNC, sizeof(StringNC), "%s", GetContatoNome(playerid, dini_Int(pZap, "NumeroP1")));
- }
- PlayerTextDrawSetString(playerid, zapTextP[playerid][7], StringNC);
- format(StringNC, sizeof(StringNC), "%033s", dini_Get(pZap, "Msg1"));
- PlayerTextDrawSetString(playerid, zapTextP[playerid][6], StringNC);
- }
- SelectTextDraw(playerid, -3);
- }
- }
- stock pName(playerid)
- {
- new nick[MAX_PLAYER_NAME + 1];
- GetPlayerName(playerid, nick, sizeof(nick));
- return nick;
- }
- CMD:zap(playerid){
- ConveP[playerid][0] = 0;
- ConveP[playerid][1] = 1;
- ConveP[playerid][2] = 2;
- ConveP[playerid][3] = 3;
- aConversas(playerid);
- return 1;
- }
- stock getHora()
- {
- new hour, hora, minute, sec, STRING[90];
- gettime(hour, minute, sec);
- if(hour == 3)
- {
- hora = 0;
- }
- if(hour == 4)
- {
- hora = 1;
- }
- if(hour == 5)
- {
- hora = 2;
- }
- if(hour == 6)
- {
- hora = 3;
- }
- if(hour == 7)
- {
- hora = 4;
- }
- if(hour == 8)
- {
- hora = 5;
- }
- if(hour == 9)
- {
- hora = 6;
- }
- if(hour == 10)
- {
- hora = 7;
- }
- if(hour == 11)
- {
- hora = 8;
- }
- if(hour == 12)
- {
- hora = 9;
- }
- if(hour == 13)
- {
- hora = 10;
- }
- if(hour == 14)
- {
- hora = 11;
- }
- if(hour == 15)
- {
- hora = 12;
- }
- if(hour == 16)
- {
- hora = 13;
- }
- if(hour == 17)
- {
- hora = 14;
- }
- if(hour == 18)
- {
- hora = 15;
- }
- if(hour == 19)
- {
- hora = 16;
- }
- if(hour == 20)
- {
- hora = 17;
- }
- if(hour == 21)
- {
- hora = 18;
- }
- if(hour == 22)
- {
- hora = 19;
- }
- if(hour == 23)
- {
- hora = 20;
- }
- if(hour == 0)
- {
- hora = 21;
- }
- if(hour == 1)
- {
- hora = 22;
- }
- if(hour == 2)
- {
- hora = 23;
- }
- format(STRING, 50, "%02d:%02d", hora, minute);
- return STRING;
- }
- stock GetContatoNome(playerid, number) {
- new String[128], str[128], pCon[90];
- if(IsPlayerConnected(playerid)) {
- format(pCon, 90, "WhatsApp/Contatos/%s.ini", pName(playerid));
- if(dini_Exists(pCon)) {
- new TemContato = 0;
- for(new i = 0; i < MAX_CONTATOS; i++) {
- format(String, 128, "NumeroContato%i", i);
- if(dini_Int(pCon, String) == number) {
- format(String, 128, "NomeContato%i", i);
- format(str, 128, "%s", dini_Get(pCon, String));
- TemContato = 1;
- break;
- }
- }
- if(TemContato != 1) {
- format(str, 128, "%s", ConverterDinheiro(number));
- }
- }
- }
- return str;
- }
- stock ConverterDinheiro(number)
- {
- new real,mil,milhao,milhaor,bilhao,bilhaor,string[100];
- if(number > 999999999)
- {
- bilhao = number / 1000000000;
- bilhaor = number % 1000000000;
- milhao = bilhaor / 1000000;
- milhaor = bilhaor % 1000000;
- mil = milhaor / 1000;
- real = milhaor % 1000;
- }
- else if(number > 999999)
- {
- milhao = number / 1000000;
- milhaor = number % 1000000;
- mil = milhaor / 1000;
- real = milhaor % 1000;
- }
- else if(number > 999)
- {
- mil = number / 1000;
- real = number % 1000;
- }
- if(number > 999999999)
- {
- format(string, 100, "%d,%03d,%03d,%03d", bilhao, milhao, mil, real);
- }
- else if(number > 999999)
- {
- format(string, 100, "%d,%03d,%03d", milhao, mil, real);
- }
- else if(number > 999)
- {
- format(string, 100, "%d,%03d", mil, real);
- }
- else
- {
- format(string, 100, "%d", number);
- }
- return string;
- }
- stock insert_line_breaks(dest[], len = sizeof dest) //Pular linhas
- {
- static curr_index = 1;
- static curr_dest_size = 0;
- for(curr_index; curr_index < len && curr_dest_size < MAX_DEST_SIZE; curr_index++)
- {
- dest[curr_dest_size++] = dest[curr_index-1];
- if(curr_index % LINE_LENGTH == 0)
- {
- if(curr_dest_size + 3 > MAX_DEST_SIZE) break; // checks the size before inserting
- dest[curr_dest_size++] = '~';
- dest[curr_dest_size++] = 'n';
- dest[curr_dest_size++] = '~';
- }
- }
- // reset var values
- curr_index = 1;
- curr_dest_size = 0;
- }
- CMD:creditos(playerid){
- SendClientMessage(playerid, -1, "Create by yoshi_");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement