Snow for 0.3c (outdated) -
Cypress - 23.12.2010
Currently Outdated. I'm working on the new version.
Re: Snow for 0.3c -
MixMash - 23.12.2010
thank you very much...
I Like it... *****
Re: Snow for 0.3c -
MisterTickle - 23.12.2010
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
Re: Snow for 0.3c -
MestreKiller - 23.12.2010
Quote:
Originally Posted by MisterTickle
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
Re: Snow for 0.3c -
wups - 23.12.2010
Quote:
Originally Posted by MestreKiller
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.
Re: Snow for 0.3c -
knackworst - 23.12.2010
aww... I was just making the same but I didn't get around
![Sad](images/smilies/sad.gif)
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
Re: Snow for 0.3c -
Noss* - 23.12.2010
Great Job! Going to test it now (:
Re: Snow for 0.3c -
nielsbon1 - 23.12.2010
![Wink](images/smilies/wink.png)
it will lagg the players like shit but okay nice script.
Re: Snow for 0.3c -
gedux123775 - 23.12.2010
NICE
![Smiley](images/smilies/smile.png)
But, if 1 place is 100 slots players, bug?
Re: Snow for 0.3c -
nuriel8833 - 23.12.2010
Thanks!
Re: Snow for 0.3c -
HyperZ - 23.12.2010
Nice work.
Re: Snow for 0.3c -
kaamis - 23.12.2010
Nice job mean !
Re: Snow for 0.3c -
Zh3r0 - 23.12.2010
Your code has no sense. When player spawns, you set the object on slot 0.
But when he disconnects and dies you checked for slot 2 and removed slot 2.
Re: Snow for 0.3c -
bender_ - 23.12.2010
Amazing ^^ never see that
Re: Snow for 0.3c -
Tessar - 23.12.2010
Great idea! will test on my gamemode.
Re: Snow for 0.3c -
jonrb - 23.12.2010
I wouldn't recommend attaching the snow to the player's head.
That means that if a player's head moves, the snow will all move with it. If a player crouches, the snow will be at a fucked up angle. I would recommend AttachObjectToPlayer
Re: Snow for 0.3c -
Cypress - 23.12.2010
Quote:
Originally Posted by Zh3r0
Your code has no sense. When player spawns, you set the object on slot 0.
But when he disconnects and dies you checked for slot 2 and removed slot 2.
|
Yeah i'm very sorry i didn't had the time to make an edit today. I'll make an update tomorrow.
EDIT: Script Updated.
Re: Snow for 0.3c -
Ivan_Pantovic - 24.12.2010
Looks good, but can you post some more screens ?
And does it snow in interiors ?
Re: Snow for 0.3c -
DVDK - 24.12.2010
This woudn't work since it's using AttachObjectToPlayer.
Re: Snow for 0.3c -
ToPhrESH - 25.12.2010
niceeeeeee...BEsides to me the snow looks sortta brownish D: