ID:270223
 
how would i make it that when a certain person logged in they would get an object but only one time they logged in
mob
Login()
if(src.key == "Dragon_fire6653")
usr.contents += new/obj/weapon/sword
<dm/>
but i dont know how to do the rest
mob
var
logtimes = 0
Login()
if(src.key == "Dragon_fire6653")
if(logtimes == 0)
usr.contents += new/obj/weapon/sword
logtimes = logtimes + 1
else
return()


Try this...i think it should work



In response to Dmingmage
Dmingmage wrote:
> mob
> var
> logtimes = 0
> Login()
> if(src.key == "Dragon_fire6653")
> if(!logtimes)
> new/obj/weapon/sword(src)
> logtimes++
> ..()
>

Try this...i think it should work


Fixed it up a little for ya.
In response to Nadrew
thanks nadrew...i see what you did, and your right that would work, if mine did not