| Blockland Forums > Modification Help |
| Command that detects Playertype Datablock |
| (1/1) |
| Giovan:
How would I code a simple script that says >When a user types /xyz >And his playertype datablock RIGHT NOW is xyz >Do this thing to the player > |
| Chrono:
--- Code: ---function serverCmdxyz(%client) { if(isObject(%client.player) && %client.player.getDataBlock().getName() $= "xyz") %client.player.doThisThing(); } --- End code --- |
| Navigation |
| Message Index |