Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - sseebbyy

Pages: 1 ... 4 5 [6] 7
76
Videos and Screenshots / Ghost in Helicopter [Pawn]
« on: July 31, 2012, 12:55:21 am »
A real ghost lives in my Helicopter !

Here is proof: http://www.youtube.com/watch?v=KZVcCvLL1vw

[Pawn Script]

77
Videos and Screenshots / Electro Drifting [Drifting Zone Server]
« on: July 31, 2012, 12:50:27 am »
The video is made on [Drifting Zone] Server !

These are my drifting skills :

http://www.youtube.com/watch?v=AHM-wOeeeJ4

I hope you enjoy  :)

78
ShowRoom (pawn) / [FS] Fishing System v1 [By Me]
« on: July 30, 2012, 01:04:05 am »
Fishing System v1



With this system you can fishing on the port !

Commands:

/c fhelp => give all info with the fishing system !
/c buyrod  => work just on Fishing Shop ! With this command you buy a fishing rod !
/c buyworms => work just on Fishing Shop ! With this command you buy 10 worms !
/c rod => put your rod in your hand
/c fishing => fishing
/c sellf => you sell your fish for money
/c eatf => you eat your fish for health
/c leavef => you leave your fish and he say "Thank You"


For a good fishing type /aim =)

VIDEO: http://www.youtube.com/watch?v=_rkK_o53-TQ

[FilterScript] Fishing System -> Download[/ut


On Top:[/b]

Code: [Select]
new boughtr[MAX_PLAYERS];
new boughtw[MAX_PLAYERS];
new fishing[MAX_PLAYERS];
new hfish[MAX_PLAYERS];


enum randomfishing {
tfish[256],
fish,
mon,
hp,
}

new randomfish[][randomfishing] = {
{"WoW... this is the golden fish !!!",1,15000,100},
{"You fished a mandarin fish ![Good] !!!",1,3000,63},
{"Cool, a Prussian Carp !",1,6300,12},
{"Hahahaha... you fished a boot.",0,3000,0},
{"You fished a cat fish!",1,5000,41},
{"A Sea Snake, Cool  (^_^)",1,3000,1},
{"LoL... You fished a hat [hahaha]",0,6000,0},
{"You caught a carp of 1 kg ! [Good for you]",1,4000,30},
{"Hahahaha... you fished a boot.",0,3000,0},
{"Funny...You fished a small fish", 1,1000,10},
{"That's your bad day... you failed to fishing",0,1000,40},
{"This is your lucky day. You fished a big carp !!!",1,8000,50},
{"This is a shoes ? Hahahah!",0,2000,12},
{"Your fish escape!",0,1000,63}
};

forward waitfish();

OnPlayerDisconnect:

Code: [Select]
fishing[playerid] = 0;
boughtw[playerid] = 0;
boughtr[playerid] = 0;
hfish[playerid] = 0;

Commands:

Code: [Select]
else if(strcmp(cmd, "fhelp", true) == 0) {
    SendClientMessage(playerid,COLOR_YELLOW,"-----------Fishing Help-----------");
    SendClientMessage(playerid,COLOR_YELLOW,"For a good job, type '/aim' before fishing !");
    SendClientMessage(playerid,COLOR_YELLOW,"For eat,sell,live fish type '[/c] eatf, sellf,livef' !");
    SendClientMessage(playerid,COLOR_YELLOW,"For Fishing type '/c fishing' !");
    SendClientMessage(playerid,COLOR_YELLOW,"For buy rod and worms type '/c buyrod' , '/c buyworms' at shop !");
    SendClientMessage(playerid,COLOR_YELLOW,"For put the fishing rod in your hand type '/c rod' !");
    SendClientMessage(playerid,COLOR_YELLOW,"-----------Fishing Help-----------");
    return 1;
    }
else if(strcmp(cmd, "rod", true) == 0) {
if(boughtr[playerid] == 1) {
    GivePlayerWeapon(playerid,3,1);
    }
if(boughtr[playerid] == 0) {
    SendClientMessage(playerid,COLOR_GREEN,"You don't have a fishing rod! Go to shop to buy!");
}
return 1;
}
else if(strcmp(cmd, "buyrod", true) == 0) {
    if(PlayerToPoint(7, playerid, -712.7392, -1500.4816, 11.4436)) {
        new cash = GetPlayerMoney(playerid);
        if(boughtr[playerid] == 1) {
        SendClientMessage(playerid,COLOR_YELLOW,"Already have a fishing rod!");
        SendClientMessage(playerid,COLOR_YELLOW,"For put the rod in your hand type '/c rod' !");
        }
        if(boughtr[playerid] == 0) {
        if(cash >= 5000) {
        SendClientMessage(playerid,COLOR_YELLOW,"You bought a fishing rod!");
        GivePlayerWeapon(playerid,3,1);
        boughtr[playerid] = 1;
        SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 5000);
        }
        if(cash < 5000) {
        SendClientMessage(playerid,COLOR_YELLOW,"Need more money ! Need $5000 for this rod!");
        }
        }
        }
        else
        {
        SendClientMessage(playerid,COLOR_YELLOW,"You not are at shop!");
        }
    return 1;
}
else if(strcmp(cmd, "buyworms", true) == 0) {
    if(PlayerToPoint(7, playerid, -712.7392, -1500.4816, 11.4436)) {
        new cash = GetPlayerMoney(playerid);
        if(boughtw[playerid] > 0 && boughtw[playerid] < 10) {
SendClientMessage(playerid,COLOR_YELLOW,"You have worms!");
}
        if(boughtw[playerid] == 0) {
            if(cash >= 3000) {
            SendClientMessage(playerid,COLOR_YELLOW,"You bought 10 worms !");
            boughtw[playerid] = 10;
            SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 3000);
            }
            if(cash < 3000) {
            SendClientMessage(playerid,COLOR_YELLOW,"Need more money ! Need $3000 for worms!");
            }
}
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"You not are at shop!");
}
return 1;
}
else if(strcmp(cmd, "sellf", true) == 0) {
new rand = random(sizeof(randomfish));
    if(hfish[playerid] == 0) {
        SendClientMessage(playerid,COLOR_GREEN,"You don't have a fish!");
        }
if(hfish[playerid] == 1) {
    SendClientMessage(playerid,COLOR_YELLOW,"You sold your fish for money!");
    SetPlayerMoney(playerid,GetPlayerMoney(playerid) + randomfish[rand][mon]);
    hfish[playerid] = 0;
    }
    return 1;
    }
    else if(strcmp(cmd, "eatf", true) == 0) {
    new rand = random(sizeof(randomfish));
    new Float:Health;
    GetPlayerHealth(playerid,Health);
    if(hfish[playerid] == 0) {
        SendClientMessage(playerid,COLOR_GREEN,"You don't have a fish!");
        }
if(hfish[playerid] == 1) {
    SendClientMessage(playerid,COLOR_YELLOW,"You ate your fish for health!");
    SetPlayerHealth(playerid,Health + randomfish[rand][hp]);
    hfish[playerid] = 0;
    }
    return 1;
    }
    else if(strcmp(cmd, "leavef", true) == 0) {
        if(hfish[playerid] == 0) {
        SendClientMessage(playerid,COLOR_GREEN,"You don't have a fish!");
        }
if(hfish[playerid] == 1) {
    SendClientMessage(playerid,COLOR_YELLOW,"You want to live your fish, so.. say Bye!");
    SendClientMessage(playerid,COLOR_YELLOW,"The fish say: Thank You Very Much! Im so happy!");
    hfish[playerid] = 0;
}
    return 1;
    }
else if(strcmp(cmd, "fishing", true) == 0) {
    if(PlayerToPoint(30, playerid,-563.4057, -1514.9204, 4.8351 ) || PlayerToPoint(30, playerid,-600.0203, -1527.4523, 5.9322) || PlayerToPoint(30,playerid,-627.0029, -1516.8279, 8.1077) || PlayerToPoint(30,playerid,-580.3753, -1475.2249, 4.0794) || PlayerToPoint(30,playerid,-621.3587, -1459.5869, 3.7448)) {
        if(fishing[playerid] == 1) {
            SendClientMessage(playerid,COLOR_GREEN,"Already Fishing!");
}
if(fishing[playerid] == 0) {
if(boughtr[playerid] == 0) {
    SendClientMessage(playerid,COLOR_GREEN,"Need rod for fishing! Go to shop to buy!");
}
        if(boughtr[playerid] == 1) {
        if(boughtw[playerid] == 0) {
GameTextForPlayer(playerid,"~o~not have worms!");
        SendClientMessage(playerid,COLOR_GREEN,"Not have worms! Go to shop to buy!");
        }
        if(boughtw[playerid] == 1) {
GameTextForPlayer(playerid,"~o~For a good job, type ~w~/aim ~o~!");
        SendClientMessage(playerid,COLOR_YELLOW,"Wait 5 seconds to find a fish!");
        SendClientMessage(playerid,COLOR_YELLOW,"Now, you have just 1 worm!");
        SetTimer("waitfish", 5000, false);
        fishing[playerid] = 1;
        boughtw[playerid] = 0;
        TogglePlayerControllable(playerid,0);
        GivePlayerWeapon(playerid,3,1);
        }
        if(boughtw[playerid] == 2) {
GameTextForPlayer(playerid,"~o~For a good job, type ~w~/aim ~o~!");
        SendClientMessage(playerid,COLOR_YELLOW,"Wait 5 seconds to find a fish!");
        SendClientMessage(playerid,COLOR_YELLOW,"Now, you have just 1 worm!");
        SetTimer("waitfish", 5000, false);
        fishing[playerid] = 1;
        boughtw[playerid] = 1;
        TogglePlayerControllable(playerid,0);
        GivePlayerWeapon(playerid,3,1);
        }
        if(boughtw[playerid] == 3) {
GameTextForPlayer(playerid,"~o~For a good job, type ~w~/aim ~o~!");
        SendClientMessage(playerid,COLOR_YELLOW,"Wait 5 seconds to find a fish!");
        SendClientMessage(playerid,COLOR_YELLOW,"Now, you have just 2 worms!");
        SetTimer("waitfish", 5000, false);
        fishing[playerid] = 1;
        boughtw[playerid] = 2;
        TogglePlayerControllable(playerid,0);
        GivePlayerWeapon(playerid,3,1);
        }
        if(boughtw[playerid] == 4) {
GameTextForPlayer(playerid,"~o~For a good job, type ~w~/aim ~o~!");
        SendClientMessage(playerid,COLOR_YELLOW,"Wait 5 seconds to find a fish!");
        SendClientMessage(playerid,COLOR_YELLOW,"Now, you have just 3 worms!");
        SetTimer("waitfish", 5000, false);
        fishing[playerid] = 1;
        boughtw[playerid] = 3;
        TogglePlayerControllable(playerid,0);
        GivePlayerWeapon(playerid,3,1);
        }
        if(boughtw[playerid] == 5) {
GameTextForPlayer(playerid,"~o~For a good job, type ~w~/aim ~o~!");
        SendClientMessage(playerid,COLOR_YELLOW,"Wait 5 seconds to find a fish!");
        SendClientMessage(playerid,COLOR_YELLOW,"Now, you have just 4 worms!");
        SetTimer("waitfish", 5000, false);
        fishing[playerid] = 1;
        boughtw[playerid] = 4;
        TogglePlayerControllable(playerid,0);
        GivePlayerWeapon(playerid,3,1);
        }
        if(boughtw[playerid] == 6) {
GameTextForPlayer(playerid,"~o~For a good job, type ~w~/aim ~o~!");
        SendClientMessage(playerid,COLOR_YELLOW,"Wait 5 seconds to find a fish!");
        SendClientMessage(playerid,COLOR_YELLOW,"Now, you have just 5 worms!");
        SetTimer("waitfish", 5000, false);
        fishing[playerid] = 1;
        boughtw[playerid] = 5;
        TogglePlayerControllable(playerid,0);
        GivePlayerWeapon(playerid,3,1);
        }
        if(boughtw[playerid] == 7) {
GameTextForPlayer(playerid,"~o~For a good job, type ~w~/aim ~o~!");
        SendClientMessage(playerid,COLOR_YELLOW,"Wait 5 seconds to find a fish!");
        SendClientMessage(playerid,COLOR_YELLOW,"Now, you have just 6 worms!");
        SetTimer("waitfish", 5000, false);
        fishing[playerid] = 1;
        boughtw[playerid] = 6;
        TogglePlayerControllable(playerid,0);
        GivePlayerWeapon(playerid,3,1);
        }
        if(boughtw[playerid] == 8) {
GameTextForPlayer(playerid,"~o~For a good job, type ~w~/aim ~o~!");
        SendClientMessage(playerid,COLOR_YELLOW,"Wait 5 seconds to find a fish!");
        SendClientMessage(playerid,COLOR_YELLOW,"Now, you have just 7 worms!");
        SetTimer("waitfish", 5000, false);
        fishing[playerid] = 1;
        boughtw[playerid] = 7;
        TogglePlayerControllable(playerid,0);
        GivePlayerWeapon(playerid,3,1);
        }
        if(boughtw[playerid] == 9) {
GameTextForPlayer(playerid,"~o~For a good job, type ~w~/aim ~o~!");
        SendClientMessage(playerid,COLOR_YELLOW,"Wait 5 seconds to find a fish!");
        SendClientMessage(playerid,COLOR_YELLOW,"Now, you have just 8 worms!");
        SetTimer("waitfish", 5000, false);
        fishing[playerid] = 1;
        boughtw[playerid] = 8;
        TogglePlayerControllable(playerid,0);
        GivePlayerWeapon(playerid,3,1);
        }
        if(boughtw[playerid] == 10) {
GameTextForPlayer(playerid,"~o~For a good job, type ~w~/aim ~o~!");
        SendClientMessage(playerid,COLOR_YELLOW,"Wait 5 seconds to find a fish!");
        SendClientMessage(playerid,COLOR_YELLOW,"Now, you have just 9 worms!");
        SetTimer("waitfish", 5000, false);
        fishing[playerid] = 1;
        boughtw[playerid] = 9;
        TogglePlayerControllable(playerid,0);
        GivePlayerWeapon(playerid,3,1);
        }
        }
        }
        }
else
{
SendClientMessage(playerid,COLOR_GREEN,"You not are at port, on legal zone!");
}
    return 1;
    }

On Player Death:

Code: [Select]
fishing[playerid] = 0;
hfish[playerid] = 0;

The New Public:

Code: [Select]
public waitfish()
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if (IsPlayerConnected(i)) {
            if(fishing[i]) {
new rand = random(sizeof(randomfish));
hfish[i] = randomfish[rand][fish];
fishing[i] = 0;
hfish[i] = randomfish[rand][fish];
TogglePlayerControllable(i,1);
GameTextForPlayer(i,"~b~Got something ! ~w~read ~b~pm !");
SendClientMessage(i,COLOR_YELLOW,randomfish[rand][tfish]);
if(hfish[i] == 0) {
}
if(hfish[i] == 1) {
TogglePlayerControllable(i,1);
GameTextForPlayer(i,"~b~Got something ! ~w~read ~b~pm !");
SendClientMessage(i,COLOR_YELLOW,randomfish[rand][tfish]);
SendClientMessage(i,COLOR_YELLOW,"You want to sell fish ? type '/c sellf' !");
SendClientMessage(i,COLOR_YELLOW,"You want to eat fish ? type '/c eatf' !");
SendClientMessage(i,COLOR_YELLOW,"You want to leave fish ? type '/c leavef' !");
        }
        }
}
}
}

This is ... Have Fun !

79
ShowRoom (pawn) / Plant Bomb System by me (Moby)
« on: July 30, 2012, 12:34:17 am »
Plant Bomb System



Work 120% ! I tested it .

[FilterScript] Plant Bomb System:  Download

I made this for shaeel ahmed.

But you can take it
  ;)

Put this on your gm top:

Code: [Select]
new HaveBomb[MAX_PLAYERS];
new BombPlanted[MAX_VEHICLES];

OnPlayerDisconnect:

Code: [Select]
HaveBomb[playerid] = 0;
This on public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger) :

Code: [Select]
if(BombPlanted[vehicleid] == 1) {
                SendClientMessage(playerid,0xAA3333AA,"In this vehicle is a bomb planted ! You can't escape !");
                SetVehicleHealth(vehicleid,0);
                PutDirectlyInVehicle(playerid,vehicleid); // it keeps you in the car
                BombPlanted[vehicleid] = 0;
                }

Now, the commands :

Code: [Select]
else if(strcmp(cmd, "buybomb", true) == 0) {
new cash = GetPlayerMoney(playerid);
if(HaveBomb[playerid] == 1) {
    SendClientMessage(playerid,0xAA3333AA,"Already have a bomb !");
    }
if(HaveBomb[playerid] == 0) {
if(cash >= 3000) {
    SetPlayerMoney(playerid,cash - 3000);
    HaveBomb[playerid] = 1;
    SendClientMessage(playerid,0xFFFFFFAA,"You bought a bomb that has cost you $ 3,000");
    }
if(cash < 3000) {
    SendClientMessage(playerid,0xAA3333AA,"You do not have enough money to buy a bomb, need $ 3,000");
    }
    }
return 1;
}
else if(strcmp(cmd, "plantbomb", true) == 0) {
    if(IsPlayerInAnyVehicle(playerid)) {
new vehicleid = GetPlayerVehicleID(playerid);
        if(HaveBomb[playerid] == 1) {
            if(BombPlanted[vehicleid] == 1) {
                SendClientMessage(playerid,0xAA3333AA,"In this car is already planted a bomb !");
              }
if(BombPlanted[vehicleid] == 0) {
BombPlanted[vehicleid] = 1;
RemovePlayerFromVehicle(playerid);
HaveBomb[playerid] = 0;
SendClientMessage(playerid,0xFFFFFFAA,"The bomb was planted successfully");
SendClientMessage(playerid,0xFFFFFFAA,"The next player to enter the car as a driver will be stuck in the car and the bomb will be detonated!");
}
}
else {
    SendClientMessage(playerid,0xAA3333AA,"You must first buy a bomb !");
    }
}
else {
    SendClientMessage(playerid,0xAA3333AA,"You need to be in a vehicle !");
    }
return 1;
}

Have Fun !

80
mIRC/pawn Scripting / "playerid" on publics made by me
« on: April 21, 2012, 06:07:07 pm »
I trying to put the possibility to add "playerid" in publics made by me but ... idk what is wrong

look at this for example:

Code: [Select]
new nameee[256];
Code: [Select]
else if(strcmp(cmd,"test",true) == 0) {
SetTimer("dada",3000,false);
nameee = gPlayers[playerid];
return 1;
}

Code: [Select]
public dada( ) {
new playerid;
playerid = GetPlayerIDFromName(nameee);
SendClientMessage(playerid,COLOR,"TEST");
}

But nothing happens

81
mIRC/pawn Scripting / How can make this to work ?
« on: March 24, 2012, 10:30:04 pm »
Code: [Select]
else if(strcmp(cmd, "h", true) == 0) {
    tmp = strtok(cmdtext,idx);
    if(PlayerInfo[playerid][Spawned] == 0) SendClientMessage(playerid,COLOR_RED,"Error: You need to spawn first !");
else if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "Error: You need to login first!");
            else if(PlayerInfo[playerid][Status] == 0) SendClientMessage(playerid, COLOR_RED, "Error: Only Humans/Infects can use the Zombie Chat !");
else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_GREEN,"Error: /c h [text] !");
            else {
                for(new allh = 0; allh <= MAX_PLAYERS; allh++) {
if(PlayerInfo[allh][Status] == 1 || PlayerInfo[allh][Status] == 2) {
new string[256];
format(string,sizeof(string),">>Human Chat - %s : %s <<",gPlayers[playerid],cmdtext[strlen(tmp)+5]);
  SendClientMessage(allh,COLOR_HUMAN,string);
}
  }
}
return 1;
}

How can i made this to work ? ...

The command work , but ... (look at the picture) :



When I typed "Why this not work ?" in chat appear just "is not work ?"

When I typed "yes" in chat appear just "s"

When I typed "da" (da = yes), in chat not appear .

I know, the problem is from this: cmdtext[strlen(tmp)+5] , but i don't know how need to be exactly for can appear all reason.

I never understood this.

82
mIRC/pawn Scripting / How to see if a player is passenger ?
« on: March 18, 2012, 10:45:30 pm »
How to see if a player is passenger ?

"ispassenger" from OnPlayerEnterVehicle is bugged .

I need very much to see if is passenger or no ...

83
mIRC/pawn Scripting / OnVehicleRespawn & OnPlayerDecreaseHealth
« on: March 11, 2012, 12:26:51 pm »
Give me a idea how to do in pawn a public named "OnVehicleRespawn"  :-\

This need to detect when the vehicle is respawned.


And.... Give me a idea (again) how to do in pawn a public named "OnplayerDecreaseHealth" :-\

This need to detect when the hp of a player decreasing.


84
mIRC/pawn Scripting / How to set to be a RANDOM value between 50 and 100 ?
« on: February 14, 2012, 06:05:28 pm »
How to set to be a random value between 50 and 100 ?

Code: [Select]
50 < random < 100

85
mIRC/pawn Scripting / (My Own) Fuel System => problem <=
« on: February 11, 2012, 11:25:20 pm »
I don't know why, but the fuel decrease fast after some time .

Now is 45 , after 30 seconds 44, after another 30 seconds (think) 43 , and he start to decrease fast now. After 15 seconds 42 after 12 seconds 41 after 10 seconds 40 etc.

This is my own Fuel System

~script deleted~

Reason: This script make part from my new GM .



What need to fix ?

86
mIRC/pawn Scripting / little problem => CLICK HERE <=
« on: February 11, 2012, 03:27:20 am »
How can i get the playerid ?  :-\

if i use " for(new i = 0; i <= MAX_PLAYERS; i++) "

is for all players... but how is just for one player ?

87
mIRC/pawn Scripting / (for me) KillEngine = Server Crash
« on: February 05, 2012, 10:26:53 pm »
I will ask more questions cuse i have in my mind a new Gamemode  :)

so ... im sure you will understand from this:

InVehicle isn't IsPlayerInAnyVehicle or IsPlayerInVehicle . Is just a variable.

public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger) :

[pawn]if(vehicleid > 142) {
       if(InVehicle[playerid] == 0) {
         SetVehicleLights(vehicleid,1);
         SetTimer("KillEngine", 1000, false);
       }
   }[/pawn]

The Public:

[pawn]public KillEngine()
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(IsPlayerInAnyVehicle(i)) {
         new veh = GetPlayerVehicleID(i);
         KillVehicleEngine(veh);
      }
   }
}[/pawn]

88
mIRC/pawn Scripting / How to save Health and Armour with dini ?
« on: February 05, 2012, 05:26:40 pm »
I want to save the player health and armour but i can't make this ...

I tried and i tried and i tried but nothing ...

My last attempt [not work] :

[pawn]public SaveInfo()
{
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) && PlayerInfo[Spawned] == 1 && PlayerInfo[Logged] == 1) {
           format(file, sizeof(file), USERS_FILE, gPlayers);
         new Float:health,Float:armour,string[256],str[256];
         GetPlayerHealth(i,health);
         format(string,sizeof(string),"%s",health);
         GetPlayerHealth(i,armour);
         format(str,sizeof(str),"%s",armour);
         dini_Set(file, "Health", string);
         dini_Set(file, "Armour", str);
        }
   }
}[/pawn]

89
mIRC/pawn Scripting / List of Pickups
« on: February 04, 2012, 10:47:24 am »
I need a list of pickups not rotate . [like 577 - wglasssmash]


90
mIRC/pawn Scripting / SetTimer from Filterscript
« on: January 13, 2012, 01:47:35 am »
I decided to do a filterscript. [My first filterscript]

I started , i compiled and when i opened the server, he stop run and give me crash.

I made more modifications in filterscript but... the crash appear too.

I putted "//" before SetTimer in public OnFilterScriptExit()  and i compiled. Work ! The Server Run !

but... with out timer in public OnFilterScriptExit() , the filterscript = 0 .

what are the problem ? 


Pages: 1 ... 4 5 [6] 7