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 - NeskWriter

Pages: 1 [2] 3
16
mIRC/pawn Scripting / I don't understand returns
« on: January 04, 2013, 01:56:08 pm »
I am really ashamed by posting that, but I don't understand what returns mean and what to write after return (1/0). I need someone's help, cuz I didn't find any help in internet.
Sorry  :-[

17
Tutorials / How to make a gametext with changing colors
« on: December 31, 2012, 12:44:10 pm »
Hi! Once I've found a topic of one guy(I don't remember his nick) where he asked us to make gamemode with changing colors.
I think that it must be posted somewhere, and i decided to post it in Tutorials group. Okay, now let's learn it!
[pawn]
forward gtchange01();// we are forwarding the 1st timer
forward gtchange02();// forwarding the 2nd timer
[/pawn]

now public OnGameModeInit
[pawn]
    SetTimer("gtchange01", 2000, 0);//we are starting 1st timer(2 secs), which will not be repeated
[/pawn]

[pawn]
public gtchange01()//We made a new public which is named as 1st timer (gtchange01)
{
    GameTextForAllBottom("~o~HELL~h~O");//we made a gametext for all in bottom which will be shown after 2 secs of GMInit
    SetTimer("gtchange02", 2000, 0);//we are starting the next timer(also 2 secs), and it also will not be repeated
    return 1;
}[/pawn]

[pawn]
public gtchange02()// we made a public of the 2nd timer(as 1st)
{
    GameTextForAllBottom("~h~HELL~o~O");//we made a gametext with another colours
    SetTimer("gtchange01", 2000, 0);//we are locking "the ring" by starting 1st timer
    return 1;
}[/pawn]

It works, I mean, it changes it's colours every 2 seconds



18
Tutorials / How to display playerclass in skinsel mode
« on: December 29, 2012, 11:37:21 am »
Hey! Today I'll learn you how to make a small script which will display your class in skin selection mode.
you got
public OnPlayerRequestClass(playerid, classid)
[pawn]{
   new team = GetPlayerTeam(playerid);//we made new "team" to get the team which is selected atm by player in Skin Selection mode
   new string[256];//we made new string
   format(string, sizeof(string), "~h~%d team", team);//we set it's format
   GameTextForPlayer(playerid, string);//we sent game text for player
   return 1;
}[/pawn]

It will display game text, for example: 1 TEAM/2 TEAM

19
Snippet Showroom / Engine turning on/off system
« on: December 14, 2012, 10:10:46 pm »
Hi, this is Nesk, I'd like to share my engine turning on/off system. It means that player shouldn't re-enter the vehicle to turn on the engine.
Commands are:
!enoff - turn off the vehicle engine
!enon - turn on the engine

[pawn]public OnPlayerText(playerid, text[])
{
   if(strcmp(text, "!enoff", true)==0)
   {
      if(IsPlayerInAnyVehicle(playerid))
      {
         new vehicleid = GetPlayerVehicleID(playerid);
          KillVehicleEngine(vehicleid);
          SendClientMessage(playerid, 0xFF0000AA, "The engine has been turned off.");
          GameTextForPlayer(playerid, "~o~            OFF");
          return 1;
      }
      else
      {
          SendClientMessage(playerid, 0xFF0000AA, "You are not in a vehicle.");
          return 1;
      }
       return 1;
   }
   else if(strcmp(text, "!enon", true)==0)
   {
      if(IsPlayerInAnyVehicle(playerid))
      {
         new vehicleid = GetPlayerVehicleID(playerid);
         RemovePlayerFromVehicle(playerid);
         PutPlayerInVehicle(playerid, vehicleid);
         SendClientMessage(playerid, 0xFF0000AA, "The engine has been turned on.");
         GameTextForPlayer(playerid, "~t~            ON");
         return 0;
      }
      else
      {
          SendClientMessage(playerid, 0xFF0000AA, "You are not in a vehicle.");
          return 0;
      }
      return 1;
   }
   return 1;
}[/pawn]

Good luck on roads!

20
mIRC/pawn Scripting / SetCameraPos
« on: December 07, 2012, 03:26:17 pm »
Sorry for noobic question, but, will SetCameraPos work in other publics? Does it support them?

21
mIRC/pawn Scripting / how to open pawno
« on: November 30, 2012, 05:41:12 pm »
How to open pawno? I need your help on "how to open pawno"

22
General Discussion / New M-16 sight
« on: November 24, 2012, 07:09:54 pm »
This is the new sight i made

comments please

23
Vice City / What u mean about my new M-16 sight?
« on: November 17, 2012, 09:38:22 am »
I made it for RP servers, my own M-16 sight
here it is
sorry for offtopic :P

Lemme share it
siteM16:


siteM16a:


Double posts merged. Please use the Modify button next time.
-stormeus

24
Tutorials / Calling function by text
« on: November 13, 2012, 10:11:23 am »
Hey there! This is my small tutorial on how to call functions by text
Note: Using this players on your server will call functions by text, not using /c cmdtext

So
All you need is:
1st. Change public OnPlayerText To this view: OnPlayerText(playerid, text[])
now, i will show you how does it work:

[pawn]public OnPlayerText(playerid, text[])
{
   if(strcmp(text, "Gimme gren please", true)==0)
   {
        SetPlayerWeapon(playerid, 12, 3);
        SendClientMessage(playerid, 0xFF0000AA, "Waiter: your welcome!");
        return 1;
   }
   return 0;
}[/pawn]

with this example players can get 3 grenades saying, "Gimme gren please"  :P

25
mIRC/pawn Scripting / functions called only by picking up pickup
« on: November 11, 2012, 09:32:54 pm »
How to make a system which will call function(s) only when player picks up any pickup?
No no no
I mean player can use commandtext only when he picks up a pickup

26
mIRC/pawn Scripting / PlayerToPoint
« on: November 10, 2012, 10:07:24 am »
guyz, can anyone give me PlayerToPoint function? i mean right view (playerid, radius etc)

27
Snippet Showroom / Hello guys! Caesar salad for all!
« on: November 09, 2012, 04:49:26 pm »
After minding progress up I made "Restaurant on the run"

All u need:

change public OnPlayerText to the next:

public OnPlayerText(playerid, text[])
[pawn]{
   if (strcmp(text, "Caesar salad please", true)==0 && GetPlayerMoney(playerid) >=100)
   {
        SendClientMessage(playerid, 0xFF0000AA, "Waiter: Here your salad, sir. Bon appetite!");
        SetPlayerHealth(playerid, 100);
        SetPlayerMoney(playerid, GetPlayerMoney(playerid)-100);
        SendClientMessage(playerid, 0xFF0000AA, "You got paid $100 for salad!");
      return 1;
   }
   else if(strcmp(text, "Caesar salad pls!", true)==0 && GetPlayerMoney(playerid) <=99)
   {
        SendClientMessage(playerid, 0xFF0000AA, "Sorry, but we do not feed the homeless. Go work sir! This salad costs $ 100.");
        return 1;
   }
   return 1;
}[/pawn]
Now, saying "Caesar salad please" you will restore your health

Bon appetite!

P.S. This is an example of text which can apply functions.

28
mIRC/pawn Scripting / How to put markers on the radar?
« on: October 27, 2012, 11:47:07 am »
Not so far i found the new topic on VCMP pawn wiki called Radar markers. I've been interested on how to add some markers to radar, for example, dollar icon, hospital icon. Now i ask, if someone can help me, pls. :-\

29
mIRC/pawn Scripting / OH God why?
« on: August 27, 2012, 04:46:48 pm »
I can't set weapon damage for grenade
I would like to set grenade damage to 25%, but on server it doesn't work
I have tried to get player health, and then to subtract, but NO RESULTS + ERROR
oh god  :-[

30
General Discussion / Guys can you
« on: August 27, 2012, 04:24:38 pm »
Hey guys! it's me, Nesk, i got an idea about special server
It's a server, where pawn scripters will have the opportunity to test their scripts/gamemodes/modes by agreement with server admins. So is this idea looks good? Thank you for your attention! ;)

Pages: 1 [2] 3