Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: [Akatsuki]Itachi on July 01, 2013, 09:24:14 am

Title: Help This One Too.
Post by: [Akatsuki]Itachi 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)
Title: Re: Help This One Too.
Post by: sseebbyy 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
Title: Re: Help This One Too.
Post by: [Akatsuki]Itachi on July 02, 2013, 09:14:37 am
thx and i will try my best