Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //these are the forwards for publics used
- forward treasuremap(playerid);
- forward textdrawhide(playerid);
- forward ClearSfishes(playerid);
- forward ClearSfishID(playerid, sfish);
- //defines for pickups
- new treasureloc1;
- new treasureloc2;
- new treasureloc3;
- new treasureloc4;
- new treasureloc5;
- new treasureloc6;
- new treasureloc7;
- new treasureloc8;
- new treasureloc9;
- new treasureloc10;
- new treasureloc11;
- new treasureloc12;
- new treasureloc13;
- new treasureloc14;
- new treasureloc15;
- new Treasure[MAX_PLAYERS];
- //-------------textdraws----
- new Text:Treasurefound[MAX_PLAYERS];
- new Text:Treasamount[MAX_PLAYERS];
- new Text:Treasworth[MAX_PLAYERS];
- new Text:Allfound[MAX_PLAYERS];
- new Text:Livetop[MAX_PLAYERS];
- new Text:Lrow1[MAX_PLAYERS];
- new Text:Lrow2[MAX_PLAYERS];
- new Text:Lrow3[MAX_PLAYERS];
- new Text:Lrow4[MAX_PLAYERS];
- new Text:Lrow5[MAX_PLAYERS];
- new Text:Livebot[MAX_PLAYERS];
- //--------------------------
- public OnPlayerDeath(playerid, killerid, reason)
- {
- Treasure[playerid] = 0;
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- //---------------------------------------------------------------------------------
- if ( pickupid == treasureloc1 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc1 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc2 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc2 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc3 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc3 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc4 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc4 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc5 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc5 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc6 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc6 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc7 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc7 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc8 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc8 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc9 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc9 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc10 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc10 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc11 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc11 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc12 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc12 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc13 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc13 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc14 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc14 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- if ( pickupid == treasureloc15 )
- {
- new string[128];
- new tresrand = random(1000000)
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 293, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 1);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasurefound[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- format(string, sizeof(string), "You have found %d/15 Treasure's!", Treasure[playerid]);
- Treasamount[playerid] = TextDrawCreate(10, 313, string);
- TextDrawAlignment(Treasamount[playerid], 1);
- TextDrawFont(Treasamount[playerid], 1);
- TextDrawLetterSize(Treasamount[playerid], 0.4, 0.8);
- TextDrawColor(Treasamount[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasamount[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasamount[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- format(string, sizeof(string), "It was worth $%d!", tresrand);
- Treasworth[playerid] = TextDrawCreate(10, 333,string);
- TextDrawAlignment(Treasworth[playerid], 1);
- TextDrawFont(Treasworth[playerid], 2);
- TextDrawLetterSize(Treasworth[playerid], 0.4, 0.8);
- TextDrawColor(Treasworth[playerid], 0xF6F6F6AA);
- // TextDrawUseBox(Treasworth[playerid], 1);
- // TextDrawTextSize(0.5, 0.9);
- TextDrawShowForPlayer(playerid, Treasworth[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_ORANGE, string);
- SafeGivePlayerMoney(playerid, tresrand);
- }
- else if(pickupid == treasureloc15 )
- {
- if(Treasure[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Treasure[playerid] += 1;
- // GameTextForPlayer(playerid, "You have found a~n~~r~Treasure", 5000, 5);
- Treasurefound[playerid] = TextDrawCreate(10, 283, "You have found a Treasure");
- TextDrawAlignment(Treasurefound[playerid], 1);
- TextDrawFont(Treasurefound[playerid], 0);
- TextDrawLetterSize(Treasurefound[playerid], 0.4, 0.8);
- TextDrawColor(Treasurefound[playerid], 0xF6F6F6AA);
- TextDrawShowForPlayer(playerid, Treasurefound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Treasure!");
- Allfound[playerid] = TextDrawCreate(166, 419, "Congratulations, you have found the last Treasure!");
- TextDrawAlignment(Allfound[playerid], 1);
- TextDrawFont(Allfound[playerid], 1);
- TextDrawLetterSize(Allfound[playerid], 0.8, 0.8);
- TextDrawColor(Allfound[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Allfound[playerid], 0.8);
- TextDrawShowForPlayer(playerid, Allfound[playerid]);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Treasure's!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- return 1;
- }
- public OnGameModeInit()
- {
- treasureloc1 = CreatePickup(1254,3,-175.3235,-444.6373,-62.3224);
- treasureloc2 = CreatePickup(1254,3,29.7718,-930.7208,-40.8714);
- treasureloc3 = CreatePickup(1254,3,86.8353,-1663.2836,-41.4935);
- treasureloc4 = CreatePickup(1254,3,386.3968,-2536.6155,-28.2578);
- treasureloc5 = CreatePickup(1254,3,2885.9875,-2946.1873,-47.9614);
- treasureloc6 = CreatePickup(1254,3,3132.4731,-1652.1267,-45.8538);
- treasureloc7 = CreatePickup(1254,3,3376.4297,-592.3472,-20.6840);
- treasureloc8 = CreatePickup(1254,3,3380.4009,792.4185,-22.3187);
- treasureloc9 = CreatePickup(1254,3,3254.5879,1941.7544,-25.7028);
- treasureloc10 = CreatePickup(1254,3,3392.6228,2697.8704,-24.3014);
- treasureloc11 = CreatePickup(1254,3,3270.3892,3703.8787,-23.4582);
- treasureloc12 = CreatePickup(1254,3,1611.8928,3367.0486,-35.1337);
- treasureloc13 = CreatePickup(1254,3,215.4141,2972.5100,-35.4648);
- treasureloc14 = CreatePickup(1254,3,-2898.5112,2918.8918,-55.4975);
- treasureloc15 = CreatePickup(1254,3,-2855.9949,-2230.8936,-30.1414);
- return 1;
- }
- //this is the bit i need to slim down
- dcmd_seafish(playerid, params[])
- {
- #pragma unused params
- // {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pFishTool] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have a fishing toolbox with you !");
- return 1;
- }
- /* if(PlayerInfo[playerid][pFishSkill] > 4)
- {
- SendClientMessage(playerid, COLOR_GREY, " These fish are big!!!!!! fish some more stay on dry land till your sure !");
- return 1;
- }*/
- if(Sfishes[playerid][psWeight1] > 0 && Sfishes[playerid][psWeight2] > 0 && Sfishes[playerid][psWeight3] > 0 && Sfishes[playerid][psWeight4] > 0 && Sfishes[playerid][psWeight5] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are already full of Fish, sell / eat / release them first !");
- return 1;
- }
- new Veh = GetPlayerVehicleID(playerid);
- if(IsABoat(Veh))
- {
- new Scaught;
- new srand;
- // new sfstring[MAX_PLAYER_NAME];
- new sfstring[256];
- new Float:health;
- new Level = PlayerInfo[playerid][psFishSkill];
- if(Level >= 0 && Level <= 50) { Scaught = random(57)-7; }
- else if(Level >= 51 && Level <= 100) { Scaught = random(120)-20; }
- else if(Level >= 101 && Level <= 200) { Scaught = random(250)-50; }
- else if(Level >= 201 && Level <= 400) { Scaught = random(460)-60; }
- else if(Level >= 401) {Scaught = random(670)-70; }
- srand = random(SfishNamesNumber);
- if(Scaught <= 0)
- {
- // SendClientMessage(playerid, COLOR_GREY, " you were pulled overboard !");
- format(sfstring, sizeof(sfstring), "~w~you were pulled overboard !");
- GameTextForPlayer(playerid, sfstring, 2500, 3);
- new Float:cx, Float:cy, Float:cz;
- GetPlayerPos(playerid, cx, cy, cz);
- SetPlayerPos(playerid, cx+5, cy+5, cz+5);
- return 1;
- }
- else if(srand == 0)
- {
- new whalerand;
- whalerand = random(10);
- if(whalerand <= 0)
- {
- // SendClientMessage(playerid, COLOR_GREY, "Baby whale");
- GameTextForPlayer(playerid, "~n~~w~Baby Whale~n~", 2500, 3);
- return 1;
- }
- else if(whalerand == 1)
- {
- GameTextForPlayer(playerid, "~n~~w~you caught a sperm whale~n~", 2500, 3);
- // SetVehicleToRespawn(Veh);
- PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
- return 1;
- }
- else if(whalerand == 2)
- {
- GameTextForPlayer(playerid, "~w~you caught your line on an old pirate galleon~n~it snaps your line", 2500, 3);
- // SetVehicleToRespawn(Veh);
- PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
- return 1;
- }
- else if(whalerand == 3)
- {
- GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 20lb bomb ~n~it explodes as you try to put it back", 2500, 3);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health-40.0);
- new Float:boomx, Float:boomy, Float:boomz;
- GetPlayerPos(playerid,boomx, boomy, boomz);
- CreateExplosion(boomx, boomy , boomz, 7, 10);
- // SetVehicleToRespawn(Veh);
- PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
- return 1;
- }
- else if(whalerand == 4)
- {
- GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 40lb bomb ~n~it explodes as you try to put it back", 2500, 3);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health-20.0);
- new Float:boomx, Float:boomy, Float:boomz;
- GetPlayerPos(playerid,boomx, boomy, boomz);
- CreateExplosion(boomx, boomy , boomz, 7, 20);
- // SetVehicleToRespawn(Veh);
- PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
- return 1;
- }
- else if(whalerand == 5)
- {
- GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 100lb bomb ~n~it explodes as you try to put it back", 2500, 3);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health-10.0);
- new Float:boomx, Float:boomy, Float:boomz;
- GetPlayerPos(playerid,boomx, boomy, boomz);
- CreateExplosion(boomx, boomy , boomz, 7, 40);
- // SetVehicleToRespawn(Veh);
- PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
- return 1;
- }
- else if(whalerand == 6)
- {
- GameTextForPlayer(playerid, "~w~you have caught a~n~ ~b~blue ~w~whale it sinks your boat", 2500, 3);
- SetVehicleToRespawn(Veh);
- PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
- return 1;
- }
- else if(whalerand == 7)
- {
- GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 20lb bomb ~n~you manage to get rid of it", 2500, 3);
- // SetVehicleToRespawn(Veh);
- PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
- return 1;
- }
- else if(whalerand == 8)
- {
- GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 40lb bomb ~n~you manage to get rid of it", 2500, 3);
- // SetVehicleToRespawn(Veh);
- PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
- return 1;
- }
- else if(whalerand == 9)
- {
- GameTextForPlayer(playerid, "~r~ WARNING ~n~~w~you have caught a 100lb bomb ~n~you manage to get rid of it", 2500, 3);
- // SetVehicleToRespawn(Veh);
- PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
- return 1;
- }
- }
- else if(srand == 15)
- {
- new Mstring[256];
- new Merrand;
- Merrand = random(5);
- if(Merrand <= 0)
- {
- format(Mstring, sizeof(Mstring), "~w~you caught a~r~ Mermaid ~w~she likes you and sleeps with you");
- GameTextForPlayer(playerid, Mstring, 2500, 3);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health = 100.0);
- return 1;
- }
- else if(Merrand == 1)
- {
- format(Mstring, sizeof(Mstring), "~w~you caught a~r~ Mermaid ~w~she kisses you, then jumps back in");
- GameTextForPlayer(playerid, Mstring, 2500, 3);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health+80.0);
- return 1;
- }
- else if(Merrand == 2)
- {
- format(Mstring, sizeof(Mstring), "~w~you caught a~r~ Mermaid ~w~she slaps you, then jumps back in");
- GameTextForPlayer(playerid, Mstring, 2500, 3);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health-90.0);
- return 1;
- }
- else if(Merrand == 3)
- {
- format(Mstring, sizeof(Mstring), "~w~you caught a~r~ Merman ~w~he punches you, then jumps back in");
- GameTextForPlayer(playerid, Mstring, 2500, 3);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health-50.0);
- return 1;
- }
- else if(Merrand == 4)
- {
- format(Mstring, sizeof(Mstring), "~w~you caught a~r~ Merman ~w~he sodomised you, then jumped back in");
- GameTextForPlayer(playerid, Mstring, 2500, 3);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health-20.0);
- return 1;
- }
- }
- else if(srand == 16)
- {
- new sastring[256];
- // new Float:health;
- new sharkrand;
- sharkrand = random(3);
- if(sharkrand <= 0)
- {
- format(sastring, sizeof(sastring), "~w~you caught a~r~ baby ~w~Shark");
- GameTextForPlayer(playerid, sastring, 2500, 3);
- return 1;
- }
- else if(sharkrand == 1)
- {
- new sharkwieght = random(10)+1;
- format(sastring, sizeof(sastring), "~w~you caught a~r~ %d ~g~Ton ~w~Shark~n~it sinks your boat~n~ then munchies you",sharkwieght);
- GameTextForPlayer(playerid, sastring, 2500, 3);
- SetVehicleToRespawn(Veh);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health = 0.0);
- PlayerPlaySound(playerid, 1159, 0.0, 0.0, 0.0);
- return 1;
- }
- else if(sharkrand == 2)
- {
- format(sastring, sizeof(sastring), "~w~you were ~r~bitten by a ~w~Shark");
- GameTextForPlayer(playerid, sastring, 2500, 3);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid, health-10.0);
- return 1;
- }
- }
- else if(srand == 17)
- {
- // Turtlesell(playerid);
- new turstring[256];
- new turrand = random(200);
- if(turrand < 197) { turrand += 3; }
- format(turstring, sizeof(turstring), "~w~you caught a~r~ %d ~g~year old ~w~Turtle",turrand);
- GameTextForPlayer(playerid, turstring, 2500, 3);
- return 1;
- }
- else if(srand == 18)
- {
- // SendClientMessage(playerid, COLOR_GREY, " you were pulled overboard !");
- format(sfstring, sizeof(sfstring), "~w~you were pulled overboard !");
- GameTextForPlayer(playerid, sfstring, 2500, 3);
- new Float:cx, Float:cy, Float:cz;
- GetPlayerPos(playerid, cx, cy, cz);
- SetPlayerPos(playerid, cx-5, cy-5, cz+5);
- return 1;
- }
- else if(srand == 19)
- {
- new Tstring[256];
- new Trand;
- Trand = random(16);
- if(Trand <= 0)
- {
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map~n~It wipe's all known ~r~redpoints ~n~~w~on your map then disintergrats"); // 0 bad map
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- else if(Trand == 1)
- {
- SetPlayerCheckpoint(playerid,-173.5963,-715.9354,-0.3711,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 1
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc1 = CreatePickup(1274,3,-175.3235,-444.6373,-62.3224);
- return 1;
- }
- else if(Trand == 2)
- {
- SetPlayerCheckpoint(playerid,63.7251,-918.4832,-0.3505,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 2
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc2 = CreatePickup(1274,3,29.7718,-930.7208,-40.8714);
- return 1;
- }
- else if(Trand == 3)
- {
- SetPlayerCheckpoint(playerid,-38.3311,-1761.4075,-0.2246,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 3
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc3 = CreatePickup(1274,3,86.8353,-1663.2836,-41.4935);
- return 1;
- }
- else if(Trand == 4)
- {
- SetPlayerCheckpoint(playerid,279.2176,-2565.9172,-0.2846,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 4
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc4 = CreatePickup(1274,3,386.3968,-2536.6155,-28.2578);
- return 1;
- }
- else if(Trand == 5)
- {
- SetPlayerCheckpoint(playerid,2848.1995,-2862.9500,-0.9575,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 5
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc5 = CreatePickup(1274,3,2885.9875,-2946.1873,-47.9614);
- return 1;
- }
- else if(Trand == 6)
- {
- SetPlayerCheckpoint(playerid,3167.2937,-1658.1539,-0.5749,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 6
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc6 = CreatePickup(1274,3,3132.4731,-1652.1267,-45.8538);
- return 1;
- }
- else if(Trand == 7)
- {
- SetPlayerCheckpoint(playerid,3343.0813,-612.3992,-0.4333,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 7
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc7 = CreatePickup(1274,3,3376.4297,-592.3472,-20.6840);
- return 1;
- }
- else if(Trand == 8)
- {
- SetPlayerCheckpoint(playerid,3381.9033,755.0977,-0.9800,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 8
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc8 = CreatePickup(1274,3,3380.4009,792.4185,-22.3187);
- return 1;
- }
- else if(Trand == 9)
- {
- SetPlayerCheckpoint(playerid,3253.8511,1901.3837,-0.8732,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 9
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc9 = CreatePickup(1274,3,3254.5879,1941.7544,-25.7028);
- return 1;
- }
- else if(Trand == 10)
- {
- SetPlayerCheckpoint(playerid,3355.6335,2697.8704,-0.0216,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 10
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc10 = CreatePickup(1274,3,3392.6228,2697.8704,-24.3014);
- return 1;
- }
- else if(Trand == 11)
- {
- SetPlayerCheckpoint(playerid,3241.3882,3685.5278,-0.5840,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 11
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc11 = CreatePickup(1274,3,3270.3892,3703.8787,-23.4582);
- return 1;
- }
- else if(Trand == 12)
- {
- SetPlayerCheckpoint(playerid,1604.2301,3339.4077,-0.0656,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 12
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc12 = CreatePickup(1274,3,1611.8928,3367.0486,-35.1337);
- return 1;
- }
- else if(Trand == 13)
- {
- SetPlayerCheckpoint(playerid,257.0080,3010.8342,0.3429,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 13
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc13 = CreatePickup(1274,3,215.4141,2972.5100,-35.4648);
- return 1;
- }
- else if(Trand == 14)
- {
- SetPlayerCheckpoint(playerid,-2956.6157,2948.8132,0.1085,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 14
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc14 = CreatePickup(1274,3,-2898.5112,2918.8918,-55.4975);
- return 1;
- }
- else if(Trand == 15)
- {
- SetPlayerCheckpoint(playerid,-2866.0977,-2210.2219,0.1248,8.0);
- format(Tstring, sizeof(Tstring), "~w~you found a treasure map ~n~goto the red marker and try to find the treasure"); // 15
- GameTextForPlayer(playerid, Tstring, 2500, 3);
- // treasureloc15 = CreatePickup(1274,3,-2855.9949,-2230.8936,-30.1414);
- return 1;
- }
- }
- if(PlayerInfo[playerid][pFishLic] < 1)
- {
- WantedPoints[playerid] += 1;
- SetPlayerCriminal(playerid,255, "Illegal Fishing");
- }
- if(Sfishes[playerid][psWeight1] == 0)
- {
- // PlayerInfo[playerid][pFishes] += 1;
- PlayerInfo[playerid][psFishSkill] += 1;
- format(sfstring, sizeof(sfstring), "%s", SfishNames[srand]);
- strmid(Sfishes[playerid][psFish1], sfstring, 0, strlen(sfstring), 255);
- Sfishes[playerid][psWeight1] = Scaught;
- format(sfstring, sizeof(sfstring), "* You have caught a %s, which weights %d Lbs.", Sfishes[playerid][psFish1], Scaught);
- SendClientMessage(playerid, COLOR_WHITE, sfstring);
- Sfishes[playerid][psLastWeight] = Scaught;
- Sfishes[playerid][psLastFish] = 1;
- Sfishes[playerid][psFid1] = srand;
- Sfishes[playerid][psFishID] = srand;
- if(Scaught > PlayerInfo[playerid][pBiggestFish])
- {
- format(sfstring, sizeof(sfstring), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Scaught);
- SendClientMessage(playerid, COLOR_WHITE, sfstring);
- PlayerInfo[playerid][pBiggestFish] = Scaught;
- }
- }
- else if(Sfishes[playerid][psWeight2] == 0)
- {
- // PlayerInfo[playerid][pFishes] += 1;
- PlayerInfo[playerid][psFishSkill] += 1;
- format(sfstring, sizeof(sfstring), "%s", SfishNames[srand]);
- strmid(Sfishes[playerid][psFish2], sfstring, 0, strlen(sfstring), 255);
- Sfishes[playerid][psWeight2] = Scaught;
- format(sfstring, sizeof(sfstring), "* You have caught a %s, which weights %d Lbs.", Sfishes[playerid][psFish2], Scaught);
- SendClientMessage(playerid, COLOR_WHITE, sfstring);
- Sfishes[playerid][psLastWeight] = Scaught;
- Sfishes[playerid][psLastFish] = 2;
- Sfishes[playerid][psFid2] = srand;
- Sfishes[playerid][psFishID] = srand;
- if(Scaught > PlayerInfo[playerid][pBiggestFish])
- {
- format(sfstring, sizeof(sfstring), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Scaught);
- SendClientMessage(playerid, COLOR_WHITE, sfstring);
- PlayerInfo[playerid][pBiggestFish] = Scaught;
- }
- }
- else if(Sfishes[playerid][psWeight3] == 0)
- {
- // PlayerInfo[playerid][psFishes] += 1;
- PlayerInfo[playerid][psFishSkill] += 1;
- format(sfstring, sizeof(sfstring), "%s", SfishNames[srand]);
- strmid(Sfishes[playerid][psFish3], sfstring, 0, strlen(sfstring), 255);
- Sfishes[playerid][psWeight3] = Scaught;
- format(sfstring, sizeof(sfstring), "* You have caught a %s, which weights %d Lbs.", Sfishes[playerid][psFish3], Scaught);
- SendClientMessage(playerid, COLOR_WHITE, sfstring);
- Sfishes[playerid][psLastWeight] = Scaught;
- Sfishes[playerid][psLastFish] = 3;
- Sfishes[playerid][psFid3] = srand;
- Sfishes[playerid][psFishID] = srand;
- if(Scaught > PlayerInfo[playerid][pBiggestFish])
- {
- format(sfstring, sizeof(sfstring), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Scaught);
- SendClientMessage(playerid, COLOR_WHITE, sfstring);
- PlayerInfo[playerid][pBiggestFish] = Scaught;
- }
- }
- else if(Sfishes[playerid][psWeight4] == 0)
- {
- // PlayerInfo[playerid][pFishes] += 1;
- PlayerInfo[playerid][psFishSkill] += 1;
- format(sfstring, sizeof(sfstring), "%s", SfishNames[srand]);
- strmid(Sfishes[playerid][psFish4], sfstring, 0, strlen(sfstring), 255);
- Sfishes[playerid][psWeight4] = Scaught;
- format(sfstring, sizeof(sfstring), "* You have caught a %s, which weights %d Lbs.", Sfishes[playerid][psFish4], Scaught);
- SendClientMessage(playerid, COLOR_WHITE, sfstring);
- Sfishes[playerid][psLastWeight] = Scaught;
- Sfishes[playerid][psLastFish] = 4;
- Sfishes[playerid][psFid4] = srand;
- Sfishes[playerid][psFishID] = srand;
- if(Scaught > PlayerInfo[playerid][pBiggestFish])
- {
- format(sfstring, sizeof(sfstring), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Scaught);
- SendClientMessage(playerid, COLOR_WHITE, sfstring);
- PlayerInfo[playerid][pBiggestFish] = Scaught;
- }
- }
- else if(Sfishes[playerid][psWeight5] == 0)
- {
- // PlayerInfo[playerid][pFishes] += 1;
- PlayerInfo[playerid][psFishSkill] += 1;
- format(sfstring, sizeof(sfstring), "%s", SfishNames[srand]);
- strmid(Sfishes[playerid][psFish5], sfstring, 0, strlen(sfstring), 255);
- Sfishes[playerid][psWeight5] = Scaught;
- format(sfstring, sizeof(sfstring), "* You have caught a %s, which weights %d Lbs.", Sfishes[playerid][psFish5], Scaught);
- SendClientMessage(playerid, COLOR_WHITE, sfstring);
- Sfishes[playerid][psLastWeight] = Scaught;
- Sfishes[playerid][psLastFish] = 5;
- Sfishes[playerid][psFid5] = srand;
- Sfishes[playerid][psFishID] = srand;
- if(Scaught > PlayerInfo[playerid][pBiggestFish])
- {
- format(sfstring, sizeof(sfstring), "* Your old record of %d Lbs has been passed, your new Biggest Fish is: %d Lbs.", PlayerInfo[playerid][pBiggestFish], Scaught);
- SendClientMessage(playerid, COLOR_WHITE, sfstring);
- PlayerInfo[playerid][pBiggestFish] = Scaught;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You dont have any space for your Fish !");
- return 1;
- }
- if(PlayerInfo[playerid][psFishSkill] == 50)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Seafishing Skill is now Level 2, you can now catch Heavier Fishes."); }
- else if(PlayerInfo[playerid][psFishSkill] == 250)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Seafishing Skill is now Level 3, you can now catch Heavier Fishes."); }
- else if(PlayerInfo[playerid][psFishSkill] == 500)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Seafishing Skill is now Level 4, you can now catch Heavier Fishes."); }
- else if(PlayerInfo[playerid][psFishSkill] == 1000)
- { SendClientMessage(playerid, COLOR_YELLOW, "* Your Seafishing Skill is now Level 5, you can now catch Heavier Fishes."); }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not on a Fishing Boat !");
- return 1;
- }
- }
- return 1;
- }
- dcmd_livewell(playerid, params[])
- {
- #pragma unused params
- if(IsPlayerConnected(playerid))
- {
- new string[256];
- // SendClientMessage(playerid, COLOR_WHITE, "|__________________ Livewell __________________|");
- Livetop[playerid] = TextDrawCreate(10, 247, ":'''''''''''''''''''''Livewell''''''''''''''''''''':");
- TextDrawAlignment(Livetop[playerid], 1);
- TextDrawFont(Livetop[playerid], 1);
- TextDrawLetterSize(Livetop[playerid], 0.4, 0.8);
- TextDrawColor(Livetop[playerid], 0x00F600AA);
- TextDrawShowForPlayer(playerid, Livetop[playerid]);
- // SetTimer("textdrawhide", 20000, 0);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-----------------------------------------------------------------------------------------------------------------
- // new lr1string[256];
- format(string, sizeof(string), " (1) Fish: %s. Weight: %d.", Sfishes[playerid][psFish1], Sfishes[playerid][psWeight1]);
- Lrow1[playerid] = TextDrawCreate(10, 257, string);
- TextDrawAlignment(Lrow1[playerid], 1);
- TextDrawFont(Lrow1[playerid], 1);
- TextDrawLetterSize(Lrow1[playerid], 0.4, 0.8);
- TextDrawColor(Lrow1[playerid], 0xF60000AA);
- // TextDrawSetOutline(Lrow1[playerid], 0.4);
- TextDrawShowForPlayer(playerid, Lrow1[playerid]);
- // SetTimer("textdrawhide", 20000, 0);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------------------------------------------
- // new lr2string[256];
- // SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), " (2) Fish: %s. Weight: %d.", Sfishes[playerid][psFish2], Sfishes[playerid][psWeight2]);
- Lrow2[playerid] = TextDrawCreate(10, 267, string);
- TextDrawAlignment(Lrow2[playerid], 1);
- TextDrawFont(Lrow2[playerid], 1);
- TextDrawLetterSize(Lrow2[playerid], 0.4, 0.8);
- TextDrawColor(Lrow2[playerid], 0x00F600AA);
- // TextDrawSetOutline(Lrow2[playerid], 0.4);
- TextDrawShowForPlayer(playerid, Lrow2[playerid]);
- // SetTimer("textdrawhide", 20000, 0);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------------------------------------------------
- // new lr3string[256];
- // SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), " (3) Fish: %s. Weight: %d.", Sfishes[playerid][psFish3], Sfishes[playerid][psWeight3]);
- Lrow3[playerid] = TextDrawCreate(10, 277, string);
- TextDrawAlignment(Lrow3[playerid], 1);
- TextDrawFont(Lrow3[playerid], 1);
- TextDrawLetterSize(Lrow3[playerid], 0.4, 0.8);
- TextDrawColor(Lrow3[playerid], 0x0000F6AA);
- // TextDrawSetOutline(Lrow3[playerid], 0.4);
- TextDrawShowForPlayer(playerid, Lrow3[playerid]);
- // SetTimer("textdrawhide", 20000, 0);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //-------------------------------------------------------------------------------------------------------------------------
- // new lr4string[256];
- // SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), " (4) Fish: %s. Weight: %d.", Sfishes[playerid][psFish4], Sfishes[playerid][psWeight4]);
- Lrow4[playerid] = TextDrawCreate(10, 287, string);
- TextDrawAlignment(Lrow4[playerid], 1);
- TextDrawFont(Lrow4[playerid], 1);
- TextDrawLetterSize(Lrow4[playerid], 0.4, 0.8);
- TextDrawColor(Lrow4[playerid], 0xF6F6F6AA);
- // TextDrawSetOutline(Lrow4[playerid], 0.4);
- TextDrawShowForPlayer(playerid, Lrow4[playerid]);
- // SetTimer("textdrawhide", 20000, 0);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- //----------------------------------------------------------------------------------------------------------------------------
- // new lr5string[256];
- // SendClientMessage(playerid, COLOR_GREY, string);
- format(string, sizeof(string), " (5) Fish: %s. Weight: %d.", Sfishes[playerid][psFish5], Sfishes[playerid][psWeight5]);
- Lrow5[playerid] = TextDrawCreate(10, 297, string);
- TextDrawAlignment(Lrow5[playerid], 1);
- TextDrawFont(Lrow5[playerid], 1);
- TextDrawLetterSize(Lrow5[playerid], 0.4, 0.8);
- TextDrawColor(Lrow5[playerid], 0x00F600AA);
- // TextDrawSetOutline(Lrow5[playerid], 0.4);
- TextDrawShowForPlayer(playerid, Lrow5[playerid]);
- // SetTimer("textdrawhide", 20000, 0);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- // SendClientMessage(playerid, COLOR_GREY, string);
- //--------------------------------------------------------------------------------------------------------------------------
- // SendClientMessage(playerid, COLOR_WHITE, "|_____________________________________________|");
- Livebot[playerid] = TextDrawCreate(10, 307, ":....................................................:");
- TextDrawAlignment(Livebot[playerid], 1);
- TextDrawFont(Livebot[playerid], 1);
- TextDrawLetterSize(Livebot[playerid], 0.4, 0.8);
- TextDrawColor(Livebot[playerid], 0x00F600AA);
- // TextDrawSetOutline(Livebot[playerid], 0.4);
- TextDrawShowForPlayer(playerid, Livebot[playerid]);
- // SetTimer("textdrawhide", 20000, 0);
- SetTimerEx("textdrawhide", 20000, false, "i", playerid);
- }
- return 1;
- }
- dcmd_closewell(playerid, params[])
- {
- #pragma unused params
- if(IsPlayerConnected(playerid))
- {
- TextDrawHideForPlayer(playerid, Livetop[playerid]);
- TextDrawHideForPlayer(playerid, Lrow1[playerid]);
- TextDrawHideForPlayer(playerid, Lrow2[playerid]);
- TextDrawHideForPlayer(playerid, Lrow3[playerid]);
- TextDrawHideForPlayer(playerid, Lrow4[playerid]);
- TextDrawHideForPlayer(playerid, Lrow5[playerid]);
- TextDrawHideForPlayer(playerid, Livebot[playerid]);
- // return 1;
- }
- return 1;
- }
- //---------------------------<[ OnPlayerCommandText ]>--------------------------------------------------------
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- dcmd(closewell, 9, cmdtext);
- dcmd(livewell, 8, cmdtext);
- dcmd(seafish, 7, cmdtext);
- return 1;
- }
- public textdrawhide(playerid)
- {
- TextDrawHideForPlayer(playerid, Treasurefound[playerid]);
- TextDrawHideForPlayer(playerid, Treasamount[playerid]);
- TextDrawHideForPlayer(playerid, Treasworth[playerid]);
- TextDrawHideForPlayer(playerid, Allfound[playerid]);
- TextDrawHideForPlayer(playerid, Livetop[playerid]);
- TextDrawHideForPlayer(playerid, Lrow1[playerid]);
- TextDrawHideForPlayer(playerid, Lrow2[playerid]);
- TextDrawHideForPlayer(playerid, Lrow3[playerid]);
- TextDrawHideForPlayer(playerid, Lrow4[playerid]);
- TextDrawHideForPlayer(playerid, Lrow5[playerid]);
- TextDrawHideForPlayer(playerid, Livebot[playerid]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment