Code: Show/Hide case EVENT_PlayerMove:
{ Player *p = (Player*)event.p[0]; if ((p->tile.x == 512) && (p->tile.y == 512)) { sendPublic("*timer 5"); } } |
Code: Show/Hide if ((p->tile.x == 512) && (p->tile.y == 512))
{ if(c->check("command") { sendPrivate(p,"command recieved"); } } |
Code: Show/Hide if ( ((p->tile.x >> 510) && (p->tile.y >> 510)) && ((p->tile.x << 514) && (p->tile.y << 514)) )
{ if(c->check("command") { sendPrivate(p,"command recieved"); } } |
Code: Show/Hide if (x >= X_MIN && x <= X_MAX && y >= Y_MIN && y <= Y_MAX) |