darknelson
Member
- Joined
- Jun 19, 2011
- Messages
- 190
- Solutions
- 1
- Reaction score
- 15
im trying to make a code when target got storage value on 1, cant be attacked, and cant attack, help me please
i did it with that 2 codes get the result i want, can be done in one?
Lua:
int32_t value;
if (targetPlayer->getStorageValue(77777412, value)){
if (value == 1) {
return RETURNVALUE_TURNSECUREMODETOATTACKUNMARKEDPLAYERS;
}
}
if (attackerPlayer->getStorageValue(77777412, value)){
if (value == 1) {
return RETURNVALUE_TURNSECUREMODETOATTACKUNMARKEDPLAYERS;
}
}
i did it with that 2 codes get the result i want, can be done in one?
Last edited: