![]() |
headexists();
there's a function used in our personal head system on Era that checks if the "headexists" obviously. I don't know if this is a default function or a public function that was scripted into Era, because I'm trying to make personal hats but I only want people able to set their hat if the hat exists in our hat folder, this way people can't load hats off their computer harddrive.
|
headexists(str) - returns boolean
from the Wiki. You'd have to make your own system to detect hats. I recommend something like this: PHP Code:
The NPC-server will need read rights to the hats folder. |
There is a fileexists, and a bodyexists. I believe Stefan recommended bodyexists for detecting hats... either way, both have to be done on the serverside. Mess around with them to see which one you want to use.
|
the one chris provided works fine.
thanks |
Why use a custom system when are are already functions for it?
|
Quote:
|
| All times are GMT +2. The time now is 10:57 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.