SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 23/12/2010, 10:09 AM   #1
Cypress
Gangsta
 
Cypress's Avatar
 
Join Date: Dec 2009
Location: Germany
Posts: 937
Reputation: 127
Default Snow for 0.3c (outdated)

Currently Outdated. I'm working on the new version.
__________________

Welcome stranger. I like your attitude.

Last edited by Cypress; 21/02/2011 at 12:20 PM.
Cypress is offline   Reply With Quote
Old 23/12/2010, 10:15 AM   #2
MixMash
Little Clucker
 
Join Date: Aug 2010
Posts: 1
Reputation: 0
Default Re: Snow for 0.3c

thank you very much...

I Like it... *****
MixMash is offline   Reply With Quote
Old 23/12/2010, 10:20 AM   #3
MisterTickle
Huge Clucker
 
MisterTickle's Avatar
 
Join Date: Jul 2007
Posts: 372
Reputation: 85
Default Re: Snow for 0.3c

SetPlayerAttachedObject(playerid, Snow[playerid], 18864, 2);

Isn't Snow[playerid] supposed to be the an index number between 0 and 4? I don't get why you would need to create a object for every player when from my experience you would just do something like this

SetPlayerAttachedObject(playerid, 0, 18864, 2);

without the need for that loop
__________________
You might know me from Volt Host, Triangle.gs, Epic Roleplay, Project Apocalypse Roleplay, Dystopian Wasteland Roleplay, Cyberpunk Roleplay.

Now I do tabletop style session based Roleplay following a beautifully designed fully custom Cyberpunk city, with a vast desert, and a zombie ravaged city. Check us out:

https://discord.gg/mFAJ8Xd
MisterTickle is offline   Reply With Quote
Old 23/12/2010, 10:24 AM   #4
MestreKiller
Big Clucker
 
MestreKiller's Avatar
 
Join Date: Dec 2010
Posts: 113
Reputation: 0
Default Re: Snow for 0.3c

Quote:
Originally Posted by MisterTickle View Post
SetPlayerAttachedObject(playerid, Snow[playerid], 18864, 2);

Isn't Snow[playerid] supposed to be the an index number between 0 and 4? I don't get why you would need to create a object for every player when from my experience you would just do something like this

SetPlayerAttachedObject(playerid, 0, 18864, 2);

without the need for that loop
ofc it needs a loop otherwise it would create for id 0 only
__________________
My Work:
MestreKiller is offline   Reply With Quote
Old 23/12/2010, 10:44 AM   #5
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Posts: 1,216
Reputation: 141
Default Re: Snow for 0.3c

Quote:
Originally Posted by MestreKiller View Post
ofc it needs a loop otherwise it would create for id 0 only
You are wrong.

If you add
SetPlayerAttached object on OnPlayerConnect, you don't need to create an object, it creates the snow by itself.
wups is offline   Reply With Quote
Old 23/12/2010, 10:56 AM   #6
knackworst
Gangsta
 
knackworst's Avatar
 
Join Date: Sep 2010
Location: Belgium
Posts: 913
Reputation: 27
Default Re: Snow for 0.3c

aww... I was just making the same but I didn't get around and I was going to do it on the same way :P

anyways nice...


suggestion: you should do a command: /snow but if you work with a command you cannot use setplayerattached obejct, because the object has a radius, if players can choose theirselves if they want snow or not, they may not see snow wich is attached to other players when they didn't do the command /snow... for that you should use a virtual object attached to the player...



EDIT: Tested it and there is little problem... the object is attached on the player, but the player is not far enough in the object, one side of the screen snows, the other side doesn't... change the coords of the attached point
knackworst is offline   Reply With Quote
Old 23/12/2010, 12:39 PM   #7
Noss*
Huge Clucker
 
Noss*'s Avatar
 
Join Date: Jul 2010
Location: England,London
Posts: 360
Reputation: 3
Default Re: Snow for 0.3c

Great Job! Going to test it now (:
__________________
Noss* is offline   Reply With Quote
Old 23/12/2010, 12:59 PM   #8
nielsbon1
Huge Clucker
 
nielsbon1's Avatar
 
Join Date: May 2009
Location: Dutch/NL
Posts: 302
Reputation: 11
Default Re: Snow for 0.3c

it will lagg the players like shit but okay nice script.
nielsbon1 is offline   Reply With Quote
Old 23/12/2010, 01:00 PM   #9
gedux123775
Big Clucker
 
Join Date: Jun 2009
Posts: 84
Reputation: 0
Default Re: Snow for 0.3c

NICE But, if 1 place is 100 slots players, bug?
gedux123775 is offline   Reply With Quote
Old 23/12/2010, 01:11 PM   #10
nuriel8833
High-roller
 
nuriel8833's Avatar
 
Join Date: Jun 2009
Location: Israel
Posts: 1,157
Reputation: 16
Default Re: Snow for 0.3c

Thanks!
__________________
Back to forums
Although I am not scripting much,only my gamemode on my free time

My works:
80.179.219.89:7778
[Tutorial] Kills Table BonusLast.fm
nuriel8833 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Guys this Warning is annoynning me -.- FIXED FIXED FIXED Ehab_Isaac101 Help Archive 14 10/03/2010 07:12 PM
How can i make Snow come in samp 0.2? [Pixel^ Falling snow] hardstop Help Archive 6 11/11/2009 08:50 AM


All times are GMT. The time now is 09:50 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.