| Blockland Forums > Modification Help |
| Return and Else Scripts |
| << < (3/5) > >> |
| Gordo12699:
The if admin statement? |
| Ipquarx:
No, the isObject one. |
| Gordo12699:
Due to my fail scripting skills, can't tell if serious... or sarcastic... |
| Gordo12699:
Thanks for all your help lugnut and ipquarx! Edit 1: Credit has been given and it is functioning perfectly, thanks so much! |
| Gordo12699:
New Problem; Even if they aren't admin, they don't lose their stats. There is nothing wrong with the clearing script, it's something with the admin part. I'm aiming for admins not to lose stats, but non-admins do. Heres the code I have: --- Code: ---// When the players gets killed function GameConnection::onDeath(%client, %killerPlayer, %killer, %damageType, %damageLoc) { Parent::onDeath(%client, %killerPlayer, %killer, %damageType, %damageLoc); if (%client.isAdmin) { // Message about Stats messageClient('', "<color:ffffff>Your stats have been preserved because you are admin."); %client.RPData.value["tools"] = ""; return; } // Lose tools and Clear Stats if (isObject(%client) && %client.isInRP()) return; %client.RPData.value["tools"] = ""; %client.RPData.clear(); } --- End code --- There is no Syntax. |
| Navigation |
| Message Index |
| Next page |
| Previous page |