NotPix
|
  |
| Joined: 27 Nov 2008 |
| Total Posts: 259 |
|
|
| 15 Nov 2013 11:40 PM |
function isAdmin(name) for i = 1,# admins do if string.lower(name) == string.lower(admins[i]) or GPS:PlayerHasPass(name, AdminID) then return true end end end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 15 Nov 2013 11:42 PM |
because nothing is calling isAdmin admins is nil GPS is nil, AdminID is nil |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 15 Nov 2013 11:42 PM |
for i = 1, #admins do
try that and also only 2 ends I think... |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 15 Nov 2013 11:43 PM |
| oh right how did I miss that XD dayumm cnt! lol |
|
|
| Report Abuse |
|
|
NotPix
|
  |
| Joined: 27 Nov 2008 |
| Total Posts: 259 |
|
|
| 15 Nov 2013 11:48 PM |
| its just a piece of a my chat script, when i try to add the or GPS, it breaks it, and they do have spots within the script |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 15 Nov 2013 11:51 PM |
| Try UserHasBadge, I think the PlayerHasPass method is still broken (it was like, 1 month ago) |
|
|
| Report Abuse |
|
|
NotPix
|
  |
| Joined: 27 Nov 2008 |
| Total Posts: 259 |
|
|
| 16 Nov 2013 12:04 AM |
| pretty sure it does work lol |
|
|
| Report Abuse |
|
|
Zexeus
|
  |
| Joined: 11 Oct 2013 |
| Total Posts: 69 |
|
|
| 16 Nov 2013 12:06 AM |
function isAdmin(name) for i = 1,# admins do if string.lower(name) == string.lower(admins[i]) or GPS:UserHasBadge(name, AdminID) then return true end end end
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 16 Nov 2013 12:07 AM |
| make sure gps is game:GetService("BadgeService") |
|
|
| Report Abuse |
|
|
Zexeus
|
  |
| Joined: 11 Oct 2013 |
| Total Posts: 69 |
|
|
| 16 Nov 2013 12:07 AM |
| PlayerHasPass is broken still ;P |
|
|
| Report Abuse |
|
|
NotPix
|
  |
| Joined: 27 Nov 2008 |
| Total Posts: 259 |
|
|
| 16 Nov 2013 12:11 AM |
| Alright cool, that's probably my problem then thanks! |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2013 12:18 AM |
| Playerhaspass is broken :c |
|
|
| Report Abuse |
|
|