Author Topic: Help This One Too.  (Read 1861 times)

0 Members and 1 Guest are viewing this topic.

Offline [Akatsuki]Itachi

  • Wiseguy
  • **
  • Posts: 65
  • I am just a normal ???? people.
    • View Profile
    • [Akatsuki]Konoha
Help This One Too.
« on: July 01, 2013, 09:24:14 am »
I want to set pickup and can be success, but how to set one that if picked up will freeze people ? Some example for me to see ?
And how to set remove pickup. (a command)
Anybody see my server: [Akatsuki]Konoha are pleased to come in. Why I choose that name? Because it just like in Naruto, got jutsu and mission based on Naruto's story. Sadly, only available for Friday, Saturday and Sunday. More sadly is maybe not available for 3 month starting from Jun.

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Help This One Too.
« Reply #1 on: July 01, 2013, 10:43:19 am »
In Pawn you cannot add/remove pickups since the server is running.

The only way to add pickups is that function called "AddStaticPickup" ( usied just OnGameModeInit )

To can freeze the player that picks up the pickup, you need to use "public OnPickedUp(pickupid,playerid)" , so search for it with CTRL + F , but first of all, you should get the id of that pickup.
( http://thijn.vrocker-hosting.co.uk/VCWiki/index.php/OnPickedUp )

Then, in "public OnPickedUp(pickupid,playerid)" you should add a script something like this:
( you have to use this function to freeze the player: http://thijn.vrocker-hosting.co.uk/VCWiki/index.php/TogglePlayerControllable )

Code: [Select]
if(pickupid == typeyourpickupidhere) TogglePlayerControllable(playerid,0);
And I think that's all.

PS: This is the VC:MP Pawn Wiki: http://thijn.vrocker-hosting.co.uk/VCWiki/index.php/Main_Page

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline [Akatsuki]Itachi

  • Wiseguy
  • **
  • Posts: 65
  • I am just a normal ???? people.
    • View Profile
    • [Akatsuki]Konoha
Re: Help This One Too.
« Reply #2 on: July 02, 2013, 09:14:37 am »
thx and i will try my best
Anybody see my server: [Akatsuki]Konoha are pleased to come in. Why I choose that name? Because it just like in Naruto, got jutsu and mission based on Naruto's story. Sadly, only available for Friday, Saturday and Sunday. More sadly is maybe not available for 3 month starting from Jun.