ID:264603
 
Code:
    if(src.client.CheckPassport("14c9ab12190db634"))
Sub = 1
usr<<""
usr<<"You are Subscribed to Gohan Games"
usr<<""
usr.verbs+=/mob/Sub/verb/Add_Overlay/
usr.verbs+=/mob/Sub/verb/Add_Underlay/
usr.verbs+=/mob/Sub/verb/Remove_Underlays/
usr.verbs+=/mob/Sub/verb/Remove_Overlays/
usr.verbs+=/mob/Sub/verb/Change_Icon/
usr.verbs+=/mob/Sub/verb/Change_Name/
usr.verbs+=/mob/Sub/verb/Font_Face/
usr.verbs+=/mob/Sub/verb/Font_Color/
usr.verbs+=/mob/Sub/verb/Name_Font_Color/
world.SetMedal("Gohan Games Subscriber", usr)
world<<"<font color = green><b>[usr] has earned the Medal 'Gohan Games Subscriber'"
else
usr<<""
src << "You are not Subscribed to Gohan Games"
src<<" <a href=\'http://www.byond.com/hub/[world.hub]' >Click Here to Subscribe Now</a>!"
usr.contents += new /obj/HUD/Sub1
usr.contents += new /obj/HUD/Sub2
usr<<""


Problem description: Well if the player is a Subscriber it get a medals but, the world.SetMedal doesnt work and i added the medal in hub edit.

Well, did you host the server and then try? (The server gotta be hosted to earn the medals aren't I right?)
In response to Enic
No, im going to try xD. (EDIT)

I Try, but nothing Happens, i added the medal in hub, but doesnt appear "Standings" When one got it.

(Edit Again)

i changed it to:

        var/hasmedal = world.GetMedal("Gohan Games Subscriber", usr)
if(hasmedal)
else if(!isnull(hasmedal))

world.SetMedal("Gohan Games Subscriber", usr)
world<<"<font color = green><b>[usr] has earned the Medal 'Gohan Games Subscriber'"


Well for what i see that works, but the medal doesnt appear in hub.

(last Edit)

idk how but i fixed it ^^